Class AbstractDelegatingAsyncFuture<T>
java.lang.Object
org.jboss.as.controller.client.impl.AbstractDelegatingAsyncFuture<T>
- All Implemented Interfaces:
Future<T>,org.jboss.threads.AsyncCancellable,org.jboss.threads.AsyncFuture<T>
- Author:
- Emanuel Muckenhuber
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> voidaddListener(org.jboss.threads.AsyncFuture.Listener<? super T, A> aListener, A attachment) org.jboss.threads.AsyncFuture.Statusawait()org.jboss.threads.AsyncFuture.Statusorg.jboss.threads.AsyncFuture.Statusorg.jboss.threads.AsyncFuture.StatusawaitUninterruptibly(long timeout, TimeUnit unit) booleancancel(boolean interruptionDesired) get()org.jboss.threads.AsyncFuture.StatusgetUninterruptibly(long timeout, TimeUnit unit) booleanbooleanisDone()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.threads.AsyncFuture
asyncCancel
-
Constructor Details
-
AbstractDelegatingAsyncFuture
-
-
Method Details
-
getUninterruptibly
-
getUninterruptibly
public T getUninterruptibly(long timeout, TimeUnit unit) throws CancellationException, ExecutionException, TimeoutException -
addListener
public <A> void addListener(org.jboss.threads.AsyncFuture.Listener<? super T, A> aListener, A attachment) -
get
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException -
await
- Specified by:
awaitin interfaceorg.jboss.threads.AsyncFuture<T>- Throws:
InterruptedException
-
await
public org.jboss.threads.AsyncFuture.Status await(long timeout, TimeUnit unit) throws InterruptedException - Specified by:
awaitin interfaceorg.jboss.threads.AsyncFuture<T>- Throws:
InterruptedException
-
awaitUninterruptibly
public org.jboss.threads.AsyncFuture.Status awaitUninterruptibly()- Specified by:
awaitUninterruptiblyin interfaceorg.jboss.threads.AsyncFuture<T>
-
awaitUninterruptibly
- Specified by:
awaitUninterruptiblyin interfaceorg.jboss.threads.AsyncFuture<T>
-
getStatus
public org.jboss.threads.AsyncFuture.Status getStatus()- Specified by:
getStatusin interfaceorg.jboss.threads.AsyncFuture<T>
-
cancel
public boolean cancel(boolean interruptionDesired) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean isDone()
-