org.logicblaze.lingo.util
Class TimeoutMapEntry
java.lang.Object
org.logicblaze.lingo.util.TimeoutMapEntry
- All Implemented Interfaces:
- java.lang.Comparable, java.util.Map.Entry
public class TimeoutMapEntry
- extends java.lang.Object
- implements java.lang.Comparable, java.util.Map.Entry
Represents an entry in a TimeoutMap
- Version:
- $Revision$
Constructor Summary |
TimeoutMapEntry(java.lang.Object id,
java.lang.Object handler,
long timeout)
|
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(java.lang.Object id,
java.lang.Object handler,
long timeout)
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface java.util.Map.Entry
getExpireTime
public long getExpireTime()
setExpireTime
public void setExpireTime(long expireTime)
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interface java.util.Map.Entry
setValue
public java.lang.Object setValue(java.lang.Object value)
- Specified by:
setValue
in interface java.util.Map.Entry
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
compareTo
public int compareTo(TimeoutMapEntry that)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.