public abstract class QueryResultAssociativeStore<KeyType,ValueType>
extends java.lang.Object
Constructor and Description |
---|
QueryResultAssociativeStore() |
Modifier and Type | Method and Description |
---|---|
void |
addCallbackOnQueryResultUpdate(IQueryResultUpdateListener<KeyType,ValueType> listener,
boolean fireNow)
Registers a listener for this query result associative store that is invoked every time when a key-value pair is inserted
or removed from the associative store.
|
void |
removeCallbackOnQueryResultUpdate(IQueryResultUpdateListener<KeyType,ValueType> listener)
Unregisters a callback registered by
addCallbackOnQueryResultUpdate(IQueryResultUpdateListener, boolean)
. |
void |
setQueryResultSetter(IQueryResultSetter<KeyType,ValueType> setter) |
public void addCallbackOnQueryResultUpdate(IQueryResultUpdateListener<KeyType,ValueType> listener, boolean fireNow)
The listener can be unregistered via removeCallbackOnQueryResultUpdate(IQueryResultUpdateListener)
.
listener
- the listener that will be notified of each key-value pair that is inserted or removed, starting from
now.fireNow
- if true, notifyPut will be immediately invoked on all current key-values as a one-time effect.public void removeCallbackOnQueryResultUpdate(IQueryResultUpdateListener<KeyType,ValueType> listener)
addCallbackOnQueryResultUpdate(IQueryResultUpdateListener, boolean)
.listener
- the listener that will no longer be notified.public void setQueryResultSetter(IQueryResultSetter<KeyType,ValueType> setter)
setter
- the setter to set