Class PersistentSplitStorageEngine<K,V>
java.lang.Object
org.terracotta.offheapstore.storage.SplitStorageEngine<K,V>
org.terracotta.offheapstore.disk.storage.PersistentSplitStorageEngine<K,V>
- All Implemented Interfaces:
Persistent, PersistentStorageEngine<K,V>, StorageEngine<K, V>
public class PersistentSplitStorageEngine<K,V>
extends SplitStorageEngine<K,V>
implements PersistentStorageEngine<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface StorageEngine
StorageEngine.Owner -
Field Summary
Fields inherited from class SplitStorageEngine
keyStorageEngine, valueStorageEngine -
Constructor Summary
ConstructorsConstructorDescriptionPersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine, PersistentHalfStorageEngine<V> valueStorageEngine) -
Method Summary
Modifier and TypeMethodDescriptionvoidbootstrap(ObjectInput input) voidclose()static <K,V> Factory <PersistentSplitStorageEngine<K, V>> createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory, Factory<? extends PersistentHalfStorageEngine<V>> valueFactory) voidflush()voidpersist(ObjectOutput output) Methods inherited from class SplitStorageEngine
attachedMapping, bind, clear, createFactory, destroy, encoding, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, keyEncoding, readKey, readValue, shrink, toString, valueEncoding, writeMappingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface StorageEngine
attachedMapping, bind, clear, destroy, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, readKey, readValue, shrink, writeMapping
-
Constructor Details
-
PersistentSplitStorageEngine
public PersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine, PersistentHalfStorageEngine<V> valueStorageEngine)
-
-
Method Details
-
createPersistentFactory
public static <K,V> Factory<PersistentSplitStorageEngine<K,V>> createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory, Factory<? extends PersistentHalfStorageEngine<V>> valueFactory) -
flush
- Specified by:
flushin interfacePersistent- Throws:
IOException
-
close
- Specified by:
closein interfacePersistent- Throws:
IOException
-
persist
- Specified by:
persistin interfacePersistent- Throws:
IOException
-
bootstrap
- Specified by:
bootstrapin interfacePersistent- Throws:
IOException
-