K - type of the timer keypublic interface TimerCallback<K>
TaskContext fires.| Modifier and Type | Method and Description |
|---|---|
void |
onTimer(K key,
MessageCollector collector,
TaskCoordinator coordinator)
Invoked when the timer of key fires.
|
void onTimer(K key, MessageCollector collector, TaskCoordinator coordinator)
key - timer keycollector - contains the means of sending message envelopes to the output stream.coordinator - manages execution of tasks.