Cluster.scheduleEvent()

Signature

void scheduleEvent(String schedulerName, String workKey, SimpleEvent evt, long scheduledTime)

Domain

Description

Schedules a simple event to be sent to the default destination after scheduledTime. The scheduled time is represented in milliseconds from January 1, 1970 (the UNIX epoch). Hint: To schedule a time n milliseconds from the present, you can use DateTime.getTimeInMillis() + n.

Parameters

NameTypeDescription
schedulerNameStringA unique id.
workKeyStringA unique key that identifies the work item.
evtSimpleEventThe simple event to be scheduled.
scheduledTimelongThe time in milliseconds when the event should be scheduled.

Returns

None.