Constructor and Description |
---|
AbstractDelegatingAsyncFuture(org.jboss.threads.AsyncFuture<T> delegate) |
Modifier and Type | Method and Description |
---|---|
<A> void |
addListener(org.jboss.threads.AsyncFuture.Listener<? super T,A> aListener,
A attachment) |
org.jboss.threads.AsyncFuture.Status |
await() |
org.jboss.threads.AsyncFuture.Status |
await(long timeout,
TimeUnit unit) |
org.jboss.threads.AsyncFuture.Status |
awaitUninterruptibly() |
org.jboss.threads.AsyncFuture.Status |
awaitUninterruptibly(long timeout,
TimeUnit unit) |
boolean |
cancel(boolean interruptionDesired) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
org.jboss.threads.AsyncFuture.Status |
getStatus() |
T |
getUninterruptibly() |
T |
getUninterruptibly(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public AbstractDelegatingAsyncFuture(org.jboss.threads.AsyncFuture<T> delegate)
public T getUninterruptibly() throws CancellationException, ExecutionException
public T getUninterruptibly(long timeout, TimeUnit unit) throws CancellationException, ExecutionException, TimeoutException
public <A> void addListener(org.jboss.threads.AsyncFuture.Listener<? super T,A> aListener, A attachment)
public T get() throws InterruptedException, ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
public org.jboss.threads.AsyncFuture.Status await() throws InterruptedException
await
in interface org.jboss.threads.AsyncFuture<T>
InterruptedException
public org.jboss.threads.AsyncFuture.Status await(long timeout, TimeUnit unit) throws InterruptedException
await
in interface org.jboss.threads.AsyncFuture<T>
InterruptedException
public org.jboss.threads.AsyncFuture.Status awaitUninterruptibly()
awaitUninterruptibly
in interface org.jboss.threads.AsyncFuture<T>
public org.jboss.threads.AsyncFuture.Status awaitUninterruptibly(long timeout, TimeUnit unit)
awaitUninterruptibly
in interface org.jboss.threads.AsyncFuture<T>
public org.jboss.threads.AsyncFuture.Status getStatus()
getStatus
in interface org.jboss.threads.AsyncFuture<T>
public boolean cancel(boolean interruptionDesired)
public boolean isCancelled()
isCancelled
in interface Future<T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.