Scheduler.DuplicateSheduleBehaviour| Constructor and Description |
|---|
SchedulerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Run the scheduler agent thread.
|
void |
scheduleCommand(Command command)
Schedule new command for execution.
|
void |
scheduleCommand(Command command,
int timeout)
Schedule new command for execution.
|
void |
scheduleCommand(Command command,
int timeout,
Scheduler.DuplicateSheduleBehaviour behaviour)
Schedule new command for execution.
|
void |
stop()
Stop the scheduler agent thread.
|
public void scheduleCommand(Command command)
SchedulerscheduleCommand in interface Schedulercommand - the command to executepublic void scheduleCommand(Command command, int timeout)
SchedulerscheduleCommand in interface Schedulercommand - the command to executetimeout - timeout after which the command is executedpublic void scheduleCommand(Command command, int timeout, Scheduler.DuplicateSheduleBehaviour behaviour)
SchedulerscheduleCommand in interface Schedulercommand - the command to executetimeout - timeout after which the command is executedbehaviour - if another instance of this commands runs on schedule or within timeout, should we skip it?public void run()
SchedulerCopyright © 2018. All rights reserved.