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
-
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>- Parameters:
listener-
-
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<Object>
-
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
-