Class DeterministicScheduler

java.lang.Object
org.jmock.lib.concurrent.DeterministicScheduler
All Implemented Interfaces:
Executor, ExecutorService, ScheduledExecutorService

public class DeterministicScheduler extends Object implements ScheduledExecutorService
A ScheduledExecutorService that executes commands on the thread that calls runNextPendingCommand, runUntilIdle or tick. Objects of this class can also be used as Executors or ExecutorServices if you just want to control background execution and don't need to schedule commands, but it may be simpler to use a DeterministicExecutor.