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 or null if there is none
|
boolean |
schedule(long delayMillis,
K key,
V object)
Schedules (or reschedules) the execution of given entry.
|
boolean schedule(long delayMillis, K key, V object)
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 keyint cancelIfExists(K key, V value)
key
- the scheduled keyvalue
- the scheduled valueScheduledEntry<K,V> get(K key)
void cancelAll()
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.