public class TemporaryList<T> extends Object
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.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ITEM_TIMEOUT |
Constructor and Description |
---|
TemporaryList() |
TemporaryList(int timeout)
Creates a temporary list with the given timeout in milliseconds.
|
Modifier and Type | Method and 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() |
public static final int DEFAULT_ITEM_TIMEOUT
Copyright © 2017 SNMP4J.org. All rights reserved.