Package org.spf4j.zel.vm
Class VMSyncFuture<T>
- java.lang.Object
-
- org.spf4j.zel.vm.VMSyncFuture<T>
-
-
Constructor Summary
Constructors Constructor Description VMSyncFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, TimeUnit unit)org.spf4j.base.Either<T,? extends ExecutionException>getResult()booleanisCancelled()booleanisDone()voidsetExceptionResult(ExecutionException eresult)voidsetResult(T presult)StringtoString()
-
-
-
Method Detail
-
cancel
public final boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public final boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<T>
-
getResult
public final org.spf4j.base.Either<T,? extends ExecutionException> getResult()
-
get
public final T get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public final T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
setExceptionResult
public final void setExceptionResult(ExecutionException eresult)
- Specified by:
setExceptionResultin interfaceVMFuture<T>
-
-