@GwtIncompatible static class ImmediateFuture.ImmediateFailedCheckedFuture<V,X extends java.lang.Exception> extends ImmediateFuture<V> implements CheckedFuture<V,X>
ImmediateFuture.ImmediateCancelledFuture<V>, ImmediateFuture.ImmediateFailedCheckedFuture<V,X extends java.lang.Exception>, ImmediateFuture.ImmediateFailedFuture<V>, ImmediateFuture.ImmediateSuccessfulCheckedFuture<V,X extends java.lang.Exception>, ImmediateFuture.ImmediateSuccessfulFuture<V>| Constructor and Description |
|---|
ImmediateFailedCheckedFuture(X thrown) |
| Modifier and Type | Method and Description |
|---|---|
V |
checkedGet()
Exception checking version of
Future.get() that will translate InterruptedException, CancellationException and ExecutionException into
application-specific exceptions. |
V |
checkedGet(long timeout,
java.util.concurrent.TimeUnit unit)
Exception checking version of
Future.get(long, TimeUnit) that will translate InterruptedException, CancellationException and ExecutionException into
application-specific exceptions. |
V |
get() |
java.lang.String |
toString() |
addListener, cancel, get, isCancelled, isDoneaddCallback, catching, catchingAsync, from, transform, transformAsync, withTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListenerprivate final X extends java.lang.Exception thrown
ImmediateFailedCheckedFuture(X thrown)
public V get() throws java.util.concurrent.ExecutionException
get in interface java.util.concurrent.Future<V>get in class ImmediateFuture<V>java.util.concurrent.ExecutionExceptionpublic V checkedGet() throws X extends java.lang.Exception
CheckedFutureFuture.get() that will translate InterruptedException, CancellationException and ExecutionException into
application-specific exceptions.checkedGet in interface CheckedFuture<V,X extends java.lang.Exception>X - on interruption, cancellation or execution exceptions.X extends java.lang.Exceptionpublic V checkedGet(long timeout, java.util.concurrent.TimeUnit unit) throws X extends java.lang.Exception
CheckedFutureFuture.get(long, TimeUnit) that will translate InterruptedException, CancellationException and ExecutionException into
application-specific exceptions. On timeout this method throws a normal TimeoutException.checkedGet in interface CheckedFuture<V,X extends java.lang.Exception>X - on interruption, cancellation or execution exceptions.X extends java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object