Cluster.scheduleEvent()
Signature
void scheduleEvent(String schedulerName, String workKey, SimpleEvent evt, long scheduledTime)
Description
Schedules a simple event to be sent to the default destination after scheduledTime
.
The scheduled time is represented in milliseconds from 1 January, 1970 (the Unix epoch).
Hint: To schedule a time n
milliseconds from the present, you can use
DateTime.getTimeInMillis() + n
.
Parameters
Name | Type | Description |
schedulerName | String | A unique id. |
workKey | String | A unique key that identifies the work item. |
evt | SimpleEvent | The simple event to be scheduled. |
scheduledTime | long | The time in milliseconds when the event should be scheduled. |