com.hazelcast.util.scheduler
Class ScheduledEntry<K,V>

java.lang.Object
  extended by com.hazelcast.util.scheduler.ScheduledEntry<K,V>
Type Parameters:
K - key type of scheduled entry
V - 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)
           
 
Method Summary
 boolean equals(Object o)
           
 long getActualDelayMillis()
           
 int getActualDelaySeconds()
           
 K getKey()
           
 long getScheduledDelayMillis()
           
 long getScheduleStartTimeInNanos()
           
 V getValue()
           
 int hashCode()
           
 V setValue(V value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScheduledEntry

public ScheduledEntry(K key,
                      V value,
                      long scheduledDelayMillis,
                      int actualDelaySeconds)

ScheduledEntry

public ScheduledEntry(K key,
                      V value,
                      long scheduledDelayMillis,
                      int actualDelaySeconds,
                      long scheduleStartTimeInNanos)
Method Detail

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.