Package org.apache.activemq.store
Class InlineListenableFuture
java.lang.Object
org.apache.activemq.store.InlineListenableFuture
- All Implemented Interfaces:
Future<Object>,ListenableFuture<Object>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InlineListenableFuture
public InlineListenableFuture()
-
-
Method Details
-
call
- Throws:
Exception
-
addListener
Description copied from interface:ListenableFutureregister a listener to be run on completion or immediately if complete any exceptions will be caught and logged- Specified by:
addListenerin interfaceListenableFuture<Object>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<Object>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<Object>- Throws:
InterruptedExceptionExecutionException
-
get
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<Object>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-