public class ExecutorCommandScheduler extends CommandScheduler implements io.spine.logging.Logging
NOTE: please use another implementation in applications running under the Google App Engine.
ScheduledExecutorService
Constructor and Description |
---|
ExecutorCommandScheduler() |
ExecutorCommandScheduler(java.util.concurrent.ScheduledExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
doSchedule(io.spine.core.Command command)
Schedules a command and delivers it to the target according to
the scheduling options set to a context.
|
void |
shutdown()
Initiates an orderly shutdown in which previously scheduled commands will be delivered later,
but no new commands will be accepted.
|
close, commandBus, filter, isOpen, post, schedule
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ExecutorCommandScheduler(java.util.concurrent.ScheduledExecutorService executorService)
public ExecutorCommandScheduler()
protected void doSchedule(io.spine.core.Command command)
CommandScheduler
doSchedule
in class CommandScheduler
command
- a command to deliver laterCommandScheduler.post(Command)
public void shutdown()
CommandScheduler
Invocation has no effect if the scheduler is already shut down.
shutdown
in class CommandScheduler