Package com.jme3.app
Class AppTask<V>
java.lang.Object
com.jme3.app.AppTask<V>
- All Implemented Interfaces:
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.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AppTask
Create anAppTask
that will execute the givenCallable
.- Parameters:
callable
- The callable to be executed
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<V>
-
isDone
public boolean isDone() -
getCallable
-
invoke
public void invoke()
-