org.terracotta.offheapstore.storage
Class SerializableStorageEngine

java.lang.Object
  extended by org.terracotta.offheapstore.storage.listener.AbstractListenableStorageEngine<K,V>
      extended by org.terracotta.offheapstore.storage.PortabilityBasedStorageEngine<K,V>
          extended by org.terracotta.offheapstore.storage.OffHeapBufferStorageEngine<Serializable,Serializable>
              extended by org.terracotta.offheapstore.storage.SerializableStorageEngine
All Implemented Interfaces:
OffHeapStorageArea.Owner, BinaryStorageEngine, ListenableStorageEngine<Serializable,Serializable>, StorageEngine<Serializable,Serializable>

public class SerializableStorageEngine
extends OffHeapBufferStorageEngine<Serializable,Serializable>

A OffHeapBufferStorageEngine subclass using Java serialization for portability.

Author:
Chris Dennis

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.terracotta.offheapstore.storage.StorageEngine
StorageEngine.Owner
 
Field Summary
 
Fields inherited from class org.terracotta.offheapstore.storage.OffHeapBufferStorageEngine
owner, storageArea
 
Fields inherited from class org.terracotta.offheapstore.storage.PortabilityBasedStorageEngine
keyPortability, valuePortability
 
Constructor Summary
  SerializableStorageEngine(PointerSize width, PageSource source, int pageSize)
           
protected SerializableStorageEngine(PointerSize width, PageSource source, int pageSize, Portability<Serializable> portability)
           
 
Method Summary
static Factory<SerializableStorageEngine> createFactory(PointerSize width, PageSource source, int pageSize)
           
static Factory<SerializableStorageEngine> createFactory(PointerSize width, PageSource source, int pageSize, Portability<Serializable> portability)
           
 
Methods inherited from class org.terracotta.offheapstore.storage.OffHeapBufferStorageEngine
bind, clearInternal, createFactory, createFactory, createFactory, createFactory, destroy, evictAtAddress, free, getAllocatedMemory, getDataSize, getKeyWriteContext, getOccupiedMemory, getValueWriteContext, getVitalMemory, isThief, moved, readKeyBuffer, readKeyHash, readValueBuffer, shrink, sizeOf, toString, writeLock, writeMappingBuffers, writeMappingBuffersGathering
 
Methods inherited from class org.terracotta.offheapstore.storage.PortabilityBasedStorageEngine
attachedMapping, clear, equalsBinaryKey, equalsKey, equalsValue, freeMapping, invalidateCache, readBinaryKey, readBinaryValue, readKey, readValue, writeBinaryMapping, writeBinaryMapping, writeMapping
 
Methods inherited from class org.terracotta.offheapstore.storage.listener.AbstractListenableStorageEngine
fireCleared, fireCopied, fireFreed, fireRecovered, fireWritten, hasListeners, hasRecoveryListeners, registerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableStorageEngine

public SerializableStorageEngine(PointerSize width,
                                 PageSource source,
                                 int pageSize)

SerializableStorageEngine

protected SerializableStorageEngine(PointerSize width,
                                    PageSource source,
                                    int pageSize,
                                    Portability<Serializable> portability)
Method Detail

createFactory

public static Factory<SerializableStorageEngine> createFactory(PointerSize width,
                                                               PageSource source,
                                                               int pageSize)

createFactory

public static Factory<SerializableStorageEngine> createFactory(PointerSize width,
                                                               PageSource source,
                                                               int pageSize,
                                                               Portability<Serializable> portability)


Copyright © 2015. All Rights Reserved.