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.| Constructor and Description | 
|---|
| AppTask(java.util.concurrent.Callable<V> callable)Create an  AppTaskthat will execute the givenCallable. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | cancel(boolean mayInterruptIfRunning) | 
| V | get() | 
| V | get(long timeout,
   java.util.concurrent.TimeUnit unit) | 
| java.util.concurrent.Callable<V> | getCallable() | 
| void | invoke() | 
| boolean | isCancelled() | 
| boolean | isDone() | 
public AppTask(java.util.concurrent.Callable<V> callable)
AppTask that will execute the given 
 Callable.callable - The callable to be executedpublic boolean cancel(boolean mayInterruptIfRunning)
cancel in interface java.util.concurrent.Future<V>public V get() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Future<V>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionpublic V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
get in interface java.util.concurrent.Future<V>java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutExceptionpublic boolean isCancelled()
isCancelled in interface java.util.concurrent.Future<V>public boolean isDone()
isDone in interface java.util.concurrent.Future<V>public java.util.concurrent.Callable<V> getCallable()
public void invoke()