public interface Scheduler
| Modifier and Type | Interface and Description |
|---|---|
static class |
Scheduler.DuplicateSheduleBehaviour |
| 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.
|
void scheduleCommand(Command command)
command - the command to executevoid scheduleCommand(Command command, int timeout)
command - the command to executetimeout - timeout after which the command is executedvoid scheduleCommand(Command command, int timeout, Scheduler.DuplicateSheduleBehaviour behaviour)
command - 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?void run()
void stop()
Copyright © 2018. All rights reserved.