Class AbstractDelegatingAsyncFuture<T>
- java.lang.Object
-
- org.jboss.as.controller.client.impl.AbstractDelegatingAsyncFuture<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingAsyncFuture(org.jboss.threads.AsyncFuture<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A> voidaddListener(org.jboss.threads.AsyncFuture.Listener<? super T,A> aListener, A attachment)org.jboss.threads.AsyncFuture.Statusawait()org.jboss.threads.AsyncFuture.Statusawait(long timeout, TimeUnit unit)org.jboss.threads.AsyncFuture.StatusawaitUninterruptibly()org.jboss.threads.AsyncFuture.StatusawaitUninterruptibly(long timeout, TimeUnit unit)booleancancel(boolean interruptionDesired)Tget()Tget(long timeout, TimeUnit unit)org.jboss.threads.AsyncFuture.StatusgetStatus()TgetUninterruptibly()TgetUninterruptibly(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()
-
-
-
Constructor Detail
-
AbstractDelegatingAsyncFuture
public AbstractDelegatingAsyncFuture(org.jboss.threads.AsyncFuture<T> delegate)
-
-
Method Detail
-
getUninterruptibly
public T getUninterruptibly() throws CancellationException, ExecutionException
-
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
public T get() throws InterruptedException, ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
-
await
public org.jboss.threads.AsyncFuture.Status await() throws InterruptedException- 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
public org.jboss.threads.AsyncFuture.Status awaitUninterruptibly(long timeout, TimeUnit unit)- 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>
-
-