K - key type of related entriesV - value type of related entriespublic interface EntryTaskScheduler<K,V>
| Modifier and Type | Method and Description |
|---|---|
ScheduledEntry<K,V> |
cancel(K key)
Cancel all scheduled executions with the given key.
|
void |
cancelAll()
Cancel all scheduled executions
|
int |
cancelIfExists(K key,
V value)
Cancels the scheduled executions for the given key and value if present.
|
ScheduledEntry<K,V> |
get(K key)
Return the entry for the scheduled key.
|
boolean |
schedule(long delayMillis,
K key,
V object)
Schedules (or reschedules) the execution of given entry.
|
boolean schedule(long delayMillis,
K key,
V object)
ScheduleType for possible behaviours in such case.delayMillis - milliseconds to delay the execution.key - key of this scheduling.object - user object to pass back when it is time to execute.ScheduledEntry<K,V> cancel(K key)
key - the scheduled keyScheduleType.FOR_EACH a random one will be returned,
or null if nothing was scheduled or everything already executed for this keyint cancelIfExists(K key, V value)
key - the scheduled keyvalue - the scheduled valueScheduledEntry<K,V> get(K key)
key - the scheduled keyScheduleType.FOR_EACH a random one will be returned,
or null if nothing was scheduled or everything already executed for this keyvoid cancelAll()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.