java.lang.Object
org.autogui.base.mapping.GuiMappingContext.FutureImmediate<V>
- Type Parameters:
V
- the task value
- All Implemented Interfaces:
Future<V>
- Enclosing class:
GuiMappingContext
the task future without thread
- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AtomicBoolean
protected AtomicBoolean
protected V
protected ExecutorService
-
Constructor Summary
Constructors -
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
-
task
-
result
-
finish
-
cancelled
-
timeoutService
-
-
Constructor Details
-
FutureImmediate
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<V>
-
isDone
public boolean isDone() -
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
-