Package org.jgroups.persistence
Interface PersistenceManager
- All Known Implementing Classes:
DBPersistenceManager
,FilePersistenceManager
public interface PersistenceManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the complete NV state from the DBremove
(Serializable key) Remove existing NV from being persistedGives back the Map in last known statevoid
save
(Serializable key, Serializable val) Save new NV pair as serializable objects or if already exist; store new statevoid
Use to store a complete map into persistent statevoid
shutDown()
Used to handle shutdown call the PersistenceManager implementation.
-
Method Details
-
save
Save new NV pair as serializable objects or if already exist; store new state- Parameters:
key
-val
-- Throws:
CannotPersistException
-
remove
Remove existing NV from being persisted- Parameters:
key
- value- Returns:
- Serializable; gives back the value
- Throws:
CannotRemoveException
-
saveAll
Use to store a complete map into persistent state- Parameters:
map
-- Throws:
CannotPersistException
-
retrieveAll
Gives back the Map in last known state- Returns:
- Map;
- Throws:
CannotRetrieveException
-
clear
Clears the complete NV state from the DB- Throws:
CannotRemoveException
-
shutDown
void shutDown()Used to handle shutdown call the PersistenceManager implementation. Persistent engines can leave this implementation empty.
-