@InterfaceAudience.Private public class DelayingRunner<T> extends Object implements Runnable
This can be used to build up the actions that should be taken and then
This class exists to simulate using a ScheduledExecutorService with just a regular ExecutorService and Runnables. It is used for legacy reasons in the the client; this could only be removed if we change the expectations in HTable around the pool the client is able to pass in and even if we deprecate the current APIs would require keeping this class around for the interim to bridge between the legacy ExecutorServices and the scheduled pool.
Constructor and Description |
---|
DelayingRunner(long sleepTime,
Map.Entry<byte[],List<Action<T>>> e) |
Modifier and Type | Method and Description |
---|---|
void |
add(Map.Entry<byte[],List<Action<T>>> e) |
MultiAction<T> |
getActions() |
long |
getSleepTime() |
void |
run() |
void |
setRunner(Runnable runner) |
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.