Class SimpleFutureImpl<V>
java.lang.Object
org.apache.activemq.artemis.utils.SimpleFutureImpl<V>
- All Implemented Interfaces:
Future<V>,SimpleFuture<V>
-
Field Summary
Fields inherited from interface org.apache.activemq.artemis.utils.SimpleFuture
dumb -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleFutureImpl
public SimpleFutureImpl()
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
public boolean isDone() -
fail
- Specified by:
failin interfaceSimpleFuture<V>
-
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
set
- Specified by:
setin interfaceSimpleFuture<V>
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-