com.hazelcast.util.scheduler
Class ScheduledEntry<K,V>
java.lang.Object
com.hazelcast.util.scheduler.ScheduledEntry<K,V>
- Type Parameters:
K
- key type of scheduled entryV
- value type of scheduled entry
- All Implemented Interfaces:
- Map.Entry<K,V>
public final class ScheduledEntry<K,V>
- extends Object
- implements Map.Entry<K,V>
Entry wrapper with schedule time information to be used in SecondsBasedEntryTaskScheduler.
See SecondsBasedEntryTaskScheduler
Constructor Summary |
ScheduledEntry(K key,
V value,
long scheduledDelayMillis,
int actualDelaySeconds)
|
ScheduledEntry(K key,
V value,
long scheduledDelayMillis,
int actualDelaySeconds,
long scheduleStartTimeInNanos)
|
ScheduledEntry
public ScheduledEntry(K key,
V value,
long scheduledDelayMillis,
int actualDelaySeconds)
ScheduledEntry
public ScheduledEntry(K key,
V value,
long scheduledDelayMillis,
int actualDelaySeconds,
long scheduleStartTimeInNanos)
getKey
public K getKey()
- Specified by:
getKey
in interface Map.Entry<K,V>
getValue
public V getValue()
- Specified by:
getValue
in interface Map.Entry<K,V>
setValue
public V setValue(V value)
- Specified by:
setValue
in interface Map.Entry<K,V>
getScheduledDelayMillis
public long getScheduledDelayMillis()
getActualDelaySeconds
public int getActualDelaySeconds()
getScheduleStartTimeInNanos
public long getScheduleStartTimeInNanos()
getActualDelayMillis
public long getActualDelayMillis()
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map.Entry<K,V>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map.Entry<K,V>
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.