Package com.ardor3d.util
Class GameTask<V>
java.lang.Object
com.ardor3d.util.GameTask<V>
- All Implemented Interfaces:
Future<V>
GameTask
is used in GameTaskQueue
to manage tasks that have yet to be accomplished.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ExecutionException
protected boolean
protected final Condition
protected V
protected final ReentrantLock
protected static final Logger
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
logger
-
callable
-
_result
-
_exception
-
_cancelled
protected boolean _cancelled -
_finished
protected boolean _finished -
_stateLock
-
_finishedCondition
-
-
Constructor Details
-
GameTask
-
-
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() -
getExecutionException
-