Class InternalAsyncFuture<T>
java.lang.Object
org.openspaces.core.transaction.internal.InternalAsyncFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>,Future<T>
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionInternalAsyncFuture(AsyncFuture<T> future, GigaSpace gigaSpace) InternalAsyncFuture(AsyncFuture<T> future, GigaSpace gigaSpace, Transaction tx) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) get()booleanbooleanisDone()voidsetListener(AsyncFutureListener<T> listener)
-
Constructor Details
-
InternalAsyncFuture
-
InternalAsyncFuture
-
-
Method Details
-
setListener
- Specified by:
setListenerin interfaceAsyncFuture<T>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean isDone() -
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
-