@GwtIncompatible static class ImmediateFuture.ImmediateSuccessfulCheckedFuture<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 |
|---|
ImmediateSuccessfulCheckedFuture(V value) |
| 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() |
addListener, cancel, get, isCancelled, isDoneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener@Nullable private final V value
ImmediateSuccessfulCheckedFuture(@Nullable
V value)
public V get()
get in interface java.util.concurrent.Future<V>get in class ImmediateFuture<V>public V checkedGet()
CheckedFutureFuture.get() that will translate InterruptedException, CancellationException and ExecutionException into
application-specific exceptions.checkedGet in interface CheckedFuture<V,X extends java.lang.Exception>public V checkedGet(long timeout, java.util.concurrent.TimeUnit unit)
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>