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>
,java.lang.Comparable<java.util.concurrent.Delayed>
,java.util.concurrent.Delayed
,java.util.concurrent.Future<V>
,java.util.concurrent.ScheduledFuture<V>
- Enclosing class:
- SameThreadScheduledExecutorService
private static 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>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ExecutionException
exception
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImmediateScheduledFuture(ListenableFuture<V> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.util.concurrent.Delayed other)
V
get(long timeout, java.util.concurrent.TimeUnit unit)
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
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 com.google.common.util.concurrent.ListenableFuture
addListener
-
-
-
-
Constructor Detail
-
ImmediateScheduledFuture
protected ImmediateScheduledFuture(ListenableFuture<V> future)
-
-
Method Detail
-
get
public V get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
- Specified by:
get
in interfacejava.util.concurrent.Future<V>
- Overrides:
get
in classForwardingFuture<V>
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
-
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>
-
-