org.apache.camel.util
Class TimeoutMapEntry
java.lang.Object
org.apache.camel.util.TimeoutMapEntry
- All Implemented Interfaces:
- Comparable<Object>, Map.Entry<Object,Object>
public class TimeoutMapEntry
- extends Object
- implements Comparable<Object>, Map.Entry<Object,Object>
Represents an entry in a TimeoutMap
- Version:
- $Revision: 835531 $
TimeoutMapEntry
public TimeoutMapEntry(Object id,
Object handler,
long timeout)
getKey
public Object getKey()
- Specified by:
getKey
in interface Map.Entry<Object,Object>
getExpireTime
public long getExpireTime()
setExpireTime
public void setExpireTime(long expireTime)
getValue
public Object getValue()
- Specified by:
getValue
in interface Map.Entry<Object,Object>
setValue
public Object setValue(Object value)
- Specified by:
setValue
in interface Map.Entry<Object,Object>
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 that)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.