@InterfaceAudience.Private public class DelayingRunner 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>> e) |
Modifier and Type | Method and Description |
---|---|
void |
add(Map.Entry<byte[],List<Action>> e) |
MultiAction |
getActions() |
long |
getSleepTime() |
void |
run() |
void |
setRunner(Runnable runner) |
Copyright © 2007–2019 Cloudera. All rights reserved.