final class DeferredPromiseImpl.Timeout
extends java.lang.Object
implements java.lang.Runnable
PromiseImpl.timeout(long)
method to
schedule the timeout and to resolve the chained Promise and cancel the
timeout.Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ScheduledFuture<?> |
future |
private PromiseImpl<T> |
promise |
Constructor and Description |
---|
Timeout(PromiseImpl<T> promise,
long millis) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
private final PromiseImpl<T> promise
private final java.util.concurrent.ScheduledFuture<?> future
Timeout(PromiseImpl<T> promise, long millis)