Class InternalAsyncFuture<T>
java.lang.Object
org.openspaces.core.transaction.internal.InternalAsyncFuture<T>
- All Implemented Interfaces:
AsyncFuture<T>, Future<T>
- Author:
- kimchy
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.State -
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) 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
-
InternalAsyncFuture
-
InternalAsyncFuture
-
-
Method Details
-
setListener
- Specified by:
setListenerin interfaceAsyncFuture<T>
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
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
-