Modifier and Type | Method and Description |
---|---|
void |
addListener(K key,
SpaceListener<K,V> listener)
add a SpaceListener associated with a given key
|
void |
addListener(K key,
SpaceListener<K,V> listener,
long timeout)
add a SpaceListener associated with a given key for a given
period of time.
|
java.util.Set<K> |
getKeySet() |
void |
removeListener(K key,
SpaceListener<K,V> listener)
removes a SpaceListener associated with a given key
|
int |
size(K key) |
void addListener(K key, SpaceListener<K,V> listener)
key
- Entry's keylistener
- a SpaceListenervoid addListener(K key, SpaceListener<K,V> listener, long timeout)
key
- Entry's keylistener
- a SpaceListenertimeout
- listener registration timeout in millisvoid removeListener(K key, SpaceListener<K,V> listener)
key
- Entry's keylistener
- the SpaceListenerjava.util.Set<K> getKeySet()
int size(K key)