public interface IDaemonScheduler
| Modifier and Type | Method and Description |
|---|---|
boolean |
enqueue(DaemonEntry entry,
long nDelay,
TimeUnit unit)
Enqueue a daemon for execution in the immediate future
|
void |
schedule(DaemonEntry entry,
long nInitialDelay,
TimeUnit unit)
Schedule a daemon execution.
|
void |
shutdown()
Perform an orderly shutdown, stopping daemon execution
|
void |
unSchedule(DaemonEntry daemonEntry)
Unschedule a daemon
|
static final String BEAN_NAME
boolean enqueue(DaemonEntry entry, long nDelay, TimeUnit unit)
entry - the daemon entryunit - the delay before executionnDelay - the unit of nDelay argumenttrue if the daemon was successfully queued, false otherwise, for instance if the underlying queue is over capacityvoid schedule(DaemonEntry entry, long nInitialDelay, TimeUnit unit)
entry - the daemon entrynInitialDelay - the initial delay before the first executionunit - the unit of nInitialDelay argumentDaemonEntry.getInterval()void unSchedule(DaemonEntry daemonEntry)
entry - the daemon entryvoid shutdown()
Copyright © 2020 City of Paris. All rights reserved.