Package org.apache.hadoop.hbase
Class JitterScheduledThreadPoolExecutorImpl.JitteredRunnableScheduledFuture<V>
java.lang.Object
org.apache.hadoop.hbase.JitterScheduledThreadPoolExecutorImpl.JitteredRunnableScheduledFuture<V>
- All Implemented Interfaces:
Comparable<Delayed>
,Runnable
,Delayed
,Future<V>
,RunnableFuture<V>
,RunnableScheduledFuture<V>
,ScheduledFuture<V>
- Enclosing class:
- JitterScheduledThreadPoolExecutorImpl
protected class JitterScheduledThreadPoolExecutorImpl.JitteredRunnableScheduledFuture<V>
extends Object
implements RunnableScheduledFuture<V>
Class that basically just defers to the wrapped future. The only exception is getDelay
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
wrapped
-
-
Constructor Details
-
JitteredRunnableScheduledFuture
-
-
Method Details
-
isPeriodic
- Specified by:
isPeriodic
in interfaceRunnableScheduledFuture<V>
-
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<V>
-
equals
-
hashCode
-
run
- Specified by:
run
in interfaceRunnable
- Specified by:
run
in interfaceRunnableFuture<V>
-
cancel
-
isCancelled
- Specified by:
isCancelled
in interfaceFuture<V>
-
isDone
-
get
- Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<V>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-