org.apache.camel.util
Class TimeoutMapEntry<K,V>

java.lang.Object
  extended by 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:

Constructor Summary
TimeoutMapEntry(K id, V handler, long timeout)
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 int compareTo(TimeoutMapEntry<K,V> that)
           
 long getExpireTime()
           
 K getKey()
           
 long getTimeout()
           
 V getValue()
           
 void setExpireTime(long expireTime)
           
 void setTimeout(long timeout)
           
 V setValue(V value)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

TimeoutMapEntry

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

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