Package org.apache.camel.support
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 aTimeoutMap
-
-
Constructor Summary
Constructors Constructor Description TimeoutMapEntry(K id, V handler, long timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
getExpireTime
public long getExpireTime()
-
setExpireTime
public void setExpireTime(long expireTime)
-
getTimeout
public long getTimeout()
-
setTimeout
public void setTimeout(long timeout)
-
compareTo
public int compareTo(Object that)
- Specified by:
compareTo
in interfaceComparable<K>
-
compareTo
public int compareTo(TimeoutMapEntry<K,V> that)
-
-