com.jme3.app
クラス AppTask<V>
java.lang.Object
com.jme3.app.AppTask<V>
- すべての実装されたインタフェース:
- java.util.concurrent.Future<V>
public class AppTask<V>
- extends java.lang.Object
- implements java.util.concurrent.Future<V>
AppTask
is used in AppTaskQueue
to manage tasks that have
yet to be accomplished. The AppTask system is used to execute tasks either
in the OpenGL/Render thread, or outside of it.
コンストラクタの概要 |
AppTask(java.util.concurrent.Callable<V> callable)
Create an AppTask that will execute the given
Callable . |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppTask
public AppTask(java.util.concurrent.Callable<V> callable)
- Create an
AppTask
that will execute the given
Callable
.
- パラメータ:
callable
- The callable to be executed
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- 定義:
- インタフェース
java.util.concurrent.Future<V>
内の cancel
get
public V get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
- 定義:
- インタフェース
java.util.concurrent.Future<V>
内の get
- 例外:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
get
public V get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
- 定義:
- インタフェース
java.util.concurrent.Future<V>
内の get
- 例外:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
isCancelled
public boolean isCancelled()
- 定義:
- インタフェース
java.util.concurrent.Future<V>
内の isCancelled
isDone
public boolean isDone()
- 定義:
- インタフェース
java.util.concurrent.Future<V>
内の isDone
getCallable
public java.util.concurrent.Callable<V> getCallable()
invoke
public void invoke()