Class SameThreadScheduledExecutorService.ImmediateScheduledFuture<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.testing.SameThreadScheduledExecutorService.ImmediateScheduledFuture<V>
- All Implemented Interfaces:
ListenableFuture<V>
,ListenableScheduledFuture<V>
,Comparable<Delayed>
,Delayed
,Future<V>
,ScheduledFuture<V>
- Enclosing class:
SameThreadScheduledExecutorService
private static final class SameThreadScheduledExecutorService.ImmediateScheduledFuture<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>
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Constructor Summary
Constructors -
Method Summary
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
cancel, 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 java.util.concurrent.Future
cancel, exceptionNow, get, isCancelled, isDone, resultNow, state
Methods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListener
-
Constructor Details
-
ImmediateScheduledFuture
ImmediateScheduledFuture(ListenableFuture<V> future)
-
-
Method Details
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<V>
- Overrides:
get
in classForwardingFuture<V>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<V>
-