|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
An interface describing implementation strategies for containers on the hashbelt; containers hold objects that are in the hashbelt, and provide the time-based grouping that allows the container to be efficiently dealt with as a group of objects to be expired.
Implementations of this interface need to be appropriately synchronized -- the implementations of the hashbelt rely on this object to be threadsafe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
long |
getTimestamp()
Returns the timestamp of this container. |
java.util.Iterator<java.lang.Object> |
keyIterator()
Returns an iterator over the keys contained in this container. |
void |
updateTimestamp()
Set the timestamp of this container to System.currentTimeMillis(). |
java.util.Iterator<java.lang.Object> |
valueIterator()
Returns an iterator over the values contained in this container. |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
void updateTimestamp()
long getTimestamp()
java.util.Iterator<java.lang.Object> keyIterator()
java.util.Iterator<java.lang.Object> valueIterator()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |