com.hazelcast.util.scheduler
Interface EntryTaskScheduler<K,V>
- Type Parameters:
K
- key type of related entriesV
- value type of related entries
public interface EntryTaskScheduler<K,V>
Schedules (or reschedules) the execution of given entry.
schedule
boolean schedule(long delayMillis,
K key,
V object)
- Schedules (or reschedules) the execution of given entry. Key parameter is
used to check whether there is an existing scheduling for this entry.
- Parameters:
delayMillis
- milliseconds to delay the execution.key
- key of this scheduling.object
- user object to pass back when it is time to execute.
- Returns:
- returns true if this call resulted in a new scheduling,
false otherwise.
cancel
ScheduledEntry<K,V> cancel(K key)
get
ScheduledEntry<K,V> get(K key)
flush
Set<K> flush(Set<K> keys)
cancelAll
void cancelAll()
size
int size()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.