Class SimpleFutureImpl<V>
- java.lang.Object
-
- org.apache.activemq.artemis.utils.SimpleFutureImpl<V>
-
- All Implemented Interfaces:
Future<V>,SimpleFuture<V>
public class SimpleFutureImpl<V> extends Object implements SimpleFuture<V>
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.utils.SimpleFuture
dumb
-
-
Constructor Summary
Constructors Constructor Description SimpleFutureImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)voidfail(Throwable e)Vget()Vget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()voidset(V v)
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<V>
-
fail
public void fail(Throwable e)
- Specified by:
failin interfaceSimpleFuture<V>
-
get
public V get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
set
public void set(V v)
- Specified by:
setin interfaceSimpleFuture<V>
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-