Package org.jpos.space
Interface LocalSpace<K,V>
-
- All Superinterfaces:
Space<K,V>
public interface LocalSpace<K,V> extends Space<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(K key, SpaceListener<K,V> listener)
add a SpaceListener associated with a given keyvoid
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 keyint
size(K key)
-
-
-
Method Detail
-
addListener
void addListener(K key, SpaceListener<K,V> listener)
add a SpaceListener associated with a given key- Parameters:
key
- Entry's keylistener
- a SpaceListener
-
addListener
void addListener(K key, SpaceListener<K,V> listener, long timeout)
add a SpaceListener associated with a given key for a given period of time. Warning: not supported by all space implementations.- Parameters:
key
- Entry's keylistener
- a SpaceListenertimeout
- listener registration timeout in millis
-
removeListener
void removeListener(K key, SpaceListener<K,V> listener)
removes a SpaceListener associated with a given key- Parameters:
key
- Entry's keylistener
- the SpaceListener
-
-