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 TaskRunner
InterruptedException
public void shutdown(long timeout) throws InterruptedException
shutdown
in interface TaskRunner
InterruptedException
public void shutdown() throws InterruptedException
shutdown
in interface TaskRunner
InterruptedException
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.