org.terracotta.offheapstore.disk.storage
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>
- Author:
- Chris Dennis
| Methods inherited from class org.terracotta.offheapstore.storage.SplitStorageEngine |
attachedMapping, bind, clear, createFactory, destroy, encoding, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, keyEncoding, readKey, readValue, shrink, toString, valueEncoding, writeMapping |
| Methods inherited from interface org.terracotta.offheapstore.storage.StorageEngine |
attachedMapping, bind, clear, destroy, equalsKey, equalsValue, freeMapping, getAllocatedMemory, getDataSize, getOccupiedMemory, getVitalMemory, invalidateCache, readKey, readValue, shrink, writeMapping |
PersistentSplitStorageEngine
public PersistentSplitStorageEngine(PersistentHalfStorageEngine<K> keyStorageEngine,
PersistentHalfStorageEngine<V> valueStorageEngine)
createPersistentFactory
public static <K,V> Factory<PersistentSplitStorageEngine<K,V>> createPersistentFactory(Factory<? extends PersistentHalfStorageEngine<K>> keyFactory,
Factory<? extends PersistentHalfStorageEngine<V>> valueFactory)
flush
public void flush()
throws IOException
- Specified by:
flush in interface Persistent
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Persistent
- Throws:
IOException
persist
public void persist(ObjectOutput output)
throws IOException
- Specified by:
persist in interface Persistent
- Throws:
IOException
bootstrap
public void bootstrap(ObjectInput input)
throws IOException
- Specified by:
bootstrap in interface Persistent
- Throws:
IOException
Copyright © 2016. All Rights Reserved.