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