K
- type of the key to schedulepublic interface Scheduler<K>
ScheduledFunction
callbacks to be invoked later.Modifier and Type | Method and Description |
---|---|
void |
delete(K key)
Delete the scheduled callback for the provided
key . |
void |
schedule(K key,
long timestamp)
Schedule a callback for the
key to be invoked at timestamp . |
void schedule(K key, long timestamp)
key
to be invoked at timestamp
.key
- unique key associated with the callback to scheduletimestamp
- epoch time when the callback for the key will be invoked, in millisecondsvoid delete(K key)
key
.key
- key to delete