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
Constructors -
Method Summary
-
Constructor Details
-
AppTask
Create anAppTaskthat will execute the givenCallable.- Parameters:
callable- The callable to be executed
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
public boolean isDone() -
getCallable
-
invoke
public void invoke()
-