InMemPersistenceManager
is a very simple
HashMap
-based
PersistenceManager
for Jackrabbit that keeps all data in memory and that is capable of storing and loading its contents using a simple custom binary serialization format (see {@link Serializer}).
It is configured through the following properties:
initialCapacity
: initial capacity of the hash map used to store the data loadFactor
: load factor of the hash map used to store the data persistent
: if true
the contents of the hash map is loaded on startup and stored on shutdown; if false
nothing is persisted
Please note that this class should only be used for testing purposes.