|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeoutMap
Represents a thread safe map of values which timeout after a period of inactivity.
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object key)
Looks up the value in the map by the given key. |
java.lang.Object[] |
getKeys()
Returns a copy of the keys in the map |
void |
purge()
Purges any old entries from the map |
void |
put(java.lang.Object key,
java.lang.Object value,
long timeoutMillis)
Adds the key value pair into the map such that some time after the given timeout the entry will be evicted |
void |
remove(java.lang.Object key)
|
Methods inherited from interface java.lang.Runnable |
---|
run |
Method Detail |
---|
java.lang.Object get(java.lang.Object key)
key
- the key of the value to search for
java.lang.Object[] getKeys()
void put(java.lang.Object key, java.lang.Object value, long timeoutMillis)
void remove(java.lang.Object key)
void purge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |