- java.lang.Object
-
- org.snmp4j.agent.util.TemporaryList<T>
-
public class TemporaryList<T> extends Object
TheTemporaryList
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_ITEM_TIMEOUT
-
Constructor Summary
Constructors Constructor Description TemporaryList()
TemporaryList(int timeout)
Creates a temporary list with the given timeout in milliseconds.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T o)
void
clear()
boolean
contains(T o)
int
getTimeout()
Iterator<T>
iterator()
boolean
remove(T o)
void
setTimeout(int timeout)
int
size()
-
-
-
Field Detail
-
DEFAULT_ITEM_TIMEOUT
public static final int DEFAULT_ITEM_TIMEOUT
- See Also:
- Constant Field Values
-
-