org.snmp4j.agent.util
Class TemporaryList
java.lang.Object
org.snmp4j.agent.util.TemporaryList
public class TemporaryList
- extends java.lang.Object
The TemporaryList implements a list whose items are
automatically removed after a predefined timeout. When an item is
removed by timeout, listener can be called to handle the remove.
- Author:
- Frank Fock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ITEM_TIMEOUT
public static final int DEFAULT_ITEM_TIMEOUT
- See Also:
- Constant Field Values
TemporaryList
public TemporaryList()
TemporaryList
public TemporaryList(int timeout)
add
public void add(java.lang.Object o)
contains
public boolean contains(java.lang.Object o)
remove
public boolean remove(java.lang.Object o)
setTimeout
public void setTimeout(int timeout)
getTimeout
public int getTimeout()
iterator
public java.util.Iterator iterator()
size
public int size()
clear
public void clear()