public interface Persistence
Interface defining the methods for storing and retrieving values from the Transformers persistence store
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(String prefix,
PersistenceChangeListener listener)
Register a change listener with transformers persistence module.
|
void |
delete(String key)
Delete a key from the database
|
PersistedValue |
get(String key)
Retreive a
from Transformers persistence store |
void |
put(PersistedValue persistedValue)
Store a value, multiple puts with the same key will override previously stored values
|
PersistedValue[] |
query(String query)
Query for all entries whose keys start with the query
|
void put(PersistedValue persistedValue)
Store a value, multiple puts with the same key will override previously stored values
persistedValue
- value to be storedPersistedValue get(String key)
Retreive a from Transformers persistence store
key
- The key associated with the entryPersistedValue[] query(String query)
Query for all entries whose keys start with the query
query
- prefix to query forPersistedValue
objects. Never nullvoid delete(String key)
Delete a key from the database
key
- Key to deletevoid addChangeListener(String prefix, PersistenceChangeListener listener)
Register a change listener with transformers persistence module. Will only get called if the change originates on either another cluster node or a monitoring module
prefix
- Prefix of keys we're interested inlistener
- Object to be called when data changesPlease send bug reports and comments to Caplin support