org.apache.camel.util
Class TimeoutMapEntry<K,V>
java.lang.Object
org.apache.camel.util.TimeoutMapEntry<K,V>
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>, java.util.Map.Entry<K,V>
public class TimeoutMapEntry<K,V>
- extends java.lang.Object
- implements java.lang.Comparable<java.lang.Object>, java.util.Map.Entry<K,V>
Represents an entry in a TimeoutMap
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
equals, hashCode |
TimeoutMapEntry
public TimeoutMapEntry(K id,
V handler,
long timeout)
getKey
public K getKey()
- Specified by:
getKey
in interface java.util.Map.Entry<K,V>
getExpireTime
public long getExpireTime()
setExpireTime
public void setExpireTime(long expireTime)
getValue
public V getValue()
- Specified by:
getValue
in interface java.util.Map.Entry<K,V>
setValue
public V setValue(V value)
- Specified by:
setValue
in interface java.util.Map.Entry<K,V>
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long timeout)
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareTo
in interface java.lang.Comparable<java.lang.Object>
compareTo
public int compareTo(TimeoutMapEntry<K,V> that)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Apache CAMEL