Class MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.util.concurrent.ForwardingFuture<V>
-
- com.google.common.util.concurrent.ForwardingListenableFuture<V>
-
- com.google.common.util.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture<V>
-
- com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V>
-
- All Implemented Interfaces:
ListenableFuture<V>
,ListenableScheduledFuture<V>
,java.lang.Comparable<java.util.concurrent.Delayed>
,java.util.concurrent.Delayed
,java.util.concurrent.Future<V>
,java.util.concurrent.ScheduledFuture<V>
- Enclosing class:
- MoreExecutors.ScheduledListeningDecorator
private static final class MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V> extends ForwardingListenableFuture.SimpleForwardingListenableFuture<V> implements ListenableScheduledFuture<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.util.concurrent.ForwardingListenableFuture
ForwardingListenableFuture.SimpleForwardingListenableFuture<V>
-
Nested classes/interfaces inherited from class com.google.common.util.concurrent.ForwardingFuture
ForwardingFuture.SimpleForwardingFuture<V>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ScheduledFuture<?>
scheduledDelegate
-
Constructor Summary
Constructors Constructor Description ListenableScheduledTask(ListenableFuture<V> listenableDelegate, java.util.concurrent.ScheduledFuture<?> scheduledDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
int
compareTo(java.util.concurrent.Delayed other)
long
getDelay(java.util.concurrent.TimeUnit unit)
-
Methods inherited from class com.google.common.util.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture
delegate
-
Methods inherited from class com.google.common.util.concurrent.ForwardingListenableFuture
addListener
-
Methods inherited from class com.google.common.util.concurrent.ForwardingFuture
get, get, isCancelled, isDone
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListener
-
-
-
-
Constructor Detail
-
ListenableScheduledTask
public ListenableScheduledTask(ListenableFuture<V> listenableDelegate, java.util.concurrent.ScheduledFuture<?> scheduledDelegate)
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interfacejava.util.concurrent.Future<V>
- Overrides:
cancel
in classForwardingFuture<V>
-
getDelay
public long getDelay(java.util.concurrent.TimeUnit unit)
- Specified by:
getDelay
in interfacejava.util.concurrent.Delayed
-
compareTo
public int compareTo(java.util.concurrent.Delayed other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<V>
-
-