org.ehcache.internal.store.disk
Class OffHeapDiskStore<K,V>

java.lang.Object
  extended by org.ehcache.internal.store.offheap.AbstractOffHeapStore<K,V>
      extended by org.ehcache.internal.store.disk.OffHeapDiskStore<K,V>
All Implemented Interfaces:
ConfigurationChangeSupport, Store<K,V>, AuthoritativeTier<K,V>, LowerCachingTier<K,V>

public class OffHeapDiskStore<K,V>
extends AbstractOffHeapStore<K,V>
implements AuthoritativeTier<K,V>


Nested Class Summary
static class OffHeapDiskStore.Provider
           
 
Nested classes/interfaces inherited from interface org.ehcache.spi.cache.Store
Store.Configuration<K,V>, Store.Iterator<T>, Store.PersistentStoreConfiguration<K,V,T>, Store.ValueHolder<V>
 
Field Summary
protected  java.util.concurrent.atomic.AtomicReference<Status> status
           
 
Fields inherited from class org.ehcache.internal.store.offheap.AbstractOffHeapStore
mapEvictionListener
 
Constructor Summary
OffHeapDiskStore(FileBasedPersistenceContext fileBasedPersistenceContext, Store.Configuration<K,V> config, Serializer<K> keySerializer, Serializer<V> valueSerializer, TimeSource timeSource, long sizeInBytes)
           
 
Method Summary
protected  EhcacheOffHeapBackingMap<K,OffHeapValueHolder<V>> backingMap()
           
 java.util.List<CacheConfigurationChangeListener> getConfigurationChangeListeners()
          get the List CacheConfigurationChangeListener defined in the Store
static
<T> org.terracotta.offheapstore.disk.persistent.PersistentPortability<T>
persistent(org.terracotta.offheapstore.storage.portability.Portability<T> normal)
           
 
Methods inherited from class org.ehcache.internal.store.offheap.AbstractOffHeapStore
bulkCompute, bulkCompute, bulkComputeIfAbsent, clear, compute, compute, computeIfAbsent, computeIfAbsentAndFault, computeIfPresent, computeIfPresent, containsKey, disableStoreEventNotifications, enableStoreEventNotifications, flush, get, getAndFault, getAndRemove, getOrComputeIfAbsent, handleOversizeMappingException, handleOversizeMappingException, invalidate, invalidate, iterator, put, putIfAbsent, registerEmergencyValve, remove, remove, replace, replace, setInvalidationListener, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ehcache.spi.cache.tiering.AuthoritativeTier
computeIfAbsentAndFault, flush, getAndFault
 
Methods inherited from interface org.ehcache.spi.cache.Store
bulkCompute, bulkCompute, bulkComputeIfAbsent, clear, compute, compute, computeIfAbsent, computeIfPresent, computeIfPresent, containsKey, disableStoreEventNotifications, enableStoreEventNotifications, get, iterator, put, putIfAbsent, remove, remove, replace, replace
 

Field Detail

status

protected final java.util.concurrent.atomic.AtomicReference<Status> status
Constructor Detail

OffHeapDiskStore

public OffHeapDiskStore(FileBasedPersistenceContext fileBasedPersistenceContext,
                        Store.Configuration<K,V> config,
                        Serializer<K> keySerializer,
                        Serializer<V> valueSerializer,
                        TimeSource timeSource,
                        long sizeInBytes)
Method Detail

getConfigurationChangeListeners

public java.util.List<CacheConfigurationChangeListener> getConfigurationChangeListeners()
Description copied from interface: ConfigurationChangeSupport
get the List CacheConfigurationChangeListener defined in the Store

Specified by:
getConfigurationChangeListeners in interface ConfigurationChangeSupport
Returns:
a list of CacheConfigurationChangeListener

backingMap

protected EhcacheOffHeapBackingMap<K,OffHeapValueHolder<V>> backingMap()
Specified by:
backingMap in class AbstractOffHeapStore<K,V>

persistent

public static <T> org.terracotta.offheapstore.disk.persistent.PersistentPortability<T> persistent(org.terracotta.offheapstore.storage.portability.Portability<T> normal)