public class TemporaryList<T>
extends java.lang.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 | Description |
---|---|---|
static int |
DEFAULT_ITEM_TIMEOUT |
Constructor | Description |
---|---|
TemporaryList() |
|
TemporaryList(int timeout) |
Creates a temporary list with the given timeout in milliseconds.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(T o) |
|
void |
clear() |
|
boolean |
contains(T o) |
|
int |
getTimeout() |
|
java.util.Iterator<T> |
iterator() |
|
boolean |
remove(T o) |
|
void |
setTimeout(int timeout) |
|
int |
size() |
public static final int DEFAULT_ITEM_TIMEOUT
Copyright © 2018 SNMP4J.org. All rights reserved.