org.snmp4j.agent.util
Class TemporaryList<T>
java.lang.Object
org.snmp4j.agent.util.TemporaryList<T>
public class TemporaryList<T>
- 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
operation.
- 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(T o)
contains
public boolean contains(T o)
remove
public boolean remove(T o)
setTimeout
public void setTimeout(int timeout)
getTimeout
public int getTimeout()
iterator
public java.util.Iterator<T> iterator()
size
public int size()
clear
public void clear()
Copyright © 2011 SNMP4J.org. All Rights Reserved.