com.hazelcast.util.scheduler
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) |
void |
cancelAll() |
int |
cancelIfExists(K key,
V value) |
Set<K> |
flush(Set<K> keys) |
ScheduledEntry<K,V> |
get(K key) |
boolean |
schedule(long delayMillis,
K key,
V object)
Schedules (or reschedules) the execution of given entry.
|
int |
size() |
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)
ScheduledEntry<K,V> get(K key)
void cancelAll()
int size()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.