Class TimeoutMapEntry<K,V>

java.lang.Object
org.apache.camel.support.TimeoutMapEntry<K,V>
All Implemented Interfaces:
Comparable<Object>, Map.Entry<K,V>

public class TimeoutMapEntry<K,V> extends Object implements Comparable<Object>, Map.Entry<K,V>
Represents an entry in a TimeoutMap
  • Constructor Details

    • TimeoutMapEntry

      public TimeoutMapEntry(K id, V handler, long timeout)
  • Method Details

    • getKey

      public K getKey()
      Specified by:
      getKey in interface Map.Entry<K,V>
    • getExpireTime

      public long getExpireTime()
    • setExpireTime

      public void setExpireTime(long expireTime)
    • 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>
    • getTimeout

      public long getTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • compareTo

      public int compareTo(Object that)
      Specified by:
      compareTo in interface Comparable<K>
    • compareTo

      public int compareTo(TimeoutMapEntry<K,V> that)
    • toString

      public String toString()
      Overrides:
      toString in class Object