Class AbstractAtConstructionOrAtForceFuture<T>
java.lang.Object
fj.impl.future.AbstractAtConstructionOrAtForceFuture<T>
- All Implemented Interfaces:
Future<T>
- Author:
- Dennis Cosgrove
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAtConstructionOrAtForceFuture(TaskSupplier<T> supplier, Supplier<Boolean> predicate) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Constructor Details
-
AbstractAtConstructionOrAtForceFuture
-
-
Method Details
-
get
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
isDone
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
cancel
-