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

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

Version:

Constructor Summary
TimeoutMapEntry(K id, V handler, long timeout)
           
 
Method Summary
 int compareTo(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)
           
 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 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<Object>

compareTo

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

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL