private static final class MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V> extends ForwardingListenableFuture.SimpleForwardingListenableFuture<V> implements ListenableScheduledFuture<V>
ForwardingListenableFuture.SimpleForwardingListenableFuture<V>ForwardingFuture.SimpleForwardingFuture<V>| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ScheduledFuture<?> |
scheduledDelegate |
| Constructor and Description |
|---|
ListenableScheduledTask(ListenableFuture<V> listenableDelegate,
java.util.concurrent.ScheduledFuture<?> scheduledDelegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
int |
compareTo(java.util.concurrent.Delayed other) |
long |
getDelay(java.util.concurrent.TimeUnit unit) |
delegateaddListenerget, get, isCancelled, isDonetoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListenerprivate final java.util.concurrent.ScheduledFuture<?> scheduledDelegate
public ListenableScheduledTask(ListenableFuture<V> listenableDelegate, java.util.concurrent.ScheduledFuture<?> scheduledDelegate)
public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface java.util.concurrent.Future<V>cancel in class ForwardingFuture<V>public long getDelay(java.util.concurrent.TimeUnit unit)
getDelay in interface java.util.concurrent.Delayedpublic int compareTo(java.util.concurrent.Delayed other)
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>