public class DeterministicTaskRunner extends Object implements TaskRunner
| Constructor and Description |
|---|
DeterministicTaskRunner(Executor executor,
Task task)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown() |
void |
shutdown(long timeout)
shut down the task
|
void |
wakeup()
We Expect MANY wakeup calls on the same TaskRunner - but each
needs to run
|
public DeterministicTaskRunner(Executor executor, Task task)
executor - task - public void wakeup() throws InterruptedException
wakeup in interface TaskRunnerInterruptedExceptionpublic void shutdown(long timeout) throws InterruptedException
shutdown in interface TaskRunnerInterruptedExceptionpublic void shutdown() throws InterruptedException
shutdown in interface TaskRunnerInterruptedExceptionCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.