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.- 
Nested Class SummaryNested classes/interfaces inherited from interface java.util.concurrent.FutureFuture.State
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.FutureexceptionNow, resultNow, state
- 
Constructor Details- 
AppTaskCreate anAppTaskthat will execute the givenCallable.- Parameters:
- callable- The callable to be executed
 
 
- 
- 
Method Details- 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) 
- 
get- Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
 
- 
getpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Future<V>
 
- 
isDonepublic boolean isDone()
- 
getCallable
- 
invokepublic void invoke()
 
-