2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

DirectMemoryStore

extends AbstractStore
implements PoolableStore TierableStore
java.lang.Object
   ↳ net.sf.ehcache.store.AbstractStore
     ↳ org.apache.directmemory.ehcache.DirectMemoryStore
Known Direct Subclasses

Summary

Constants
int DEFAULT_NUMBER_BYTE_BUFFERS
[Expand]
Inherited Constants
From interface net.sf.ehcache.store.Store
Fields
public static final int DEFAULT_BUFFER_SIZE
[Expand]
Inherited Fields
From class net.sf.ehcache.store.AbstractStore
Public Constructors
DirectMemoryStore(Ehcache cache, Pool<PoolableStore> offHeapPool)
DirectMemoryStore(Ehcache cache, Pool<PoolableStore> offHeapPool, boolean doNotifications)
DirectMemoryStore(long offHeapSizeBytes)
Public Methods
boolean bufferFull()
boolean containsKey(Object key)
boolean containsKeyInMemory(Object key)
boolean containsKeyOffHeap(Object key)
boolean containsKeyOnDisk(Object key)
synchronized void dispose()
void dump()
void dumpTotal()
boolean evictFromOnDisk(int count, long size)
boolean evictFromOnHeap(int count, long size)
void expireElements()
void fill(Element e)
void flush()
Element get(Object key)
long getApproximateDiskByteSize()
long getApproximateDiskCountSize()
float getApproximateDiskHitRate()
float getApproximateDiskMissRate()
long getApproximateHeapByteSize()
long getApproximateHeapCountSize()
float getApproximateHeapHitRate()
float getApproximateHeapMissRate()
Policy getInMemoryEvictionPolicy()
int getInMemorySize()
long getInMemorySizeInBytes()
Object getInternalContext()
List<Object> getKeys()
Object getMBean()
int getOffHeapSize()
long getOffHeapSizeInBytes()
int getOnDiskSize()
long getOnDiskSizeInBytes()
Set getPresentPinnedKeys()
Element getQuiet(Object key)
int getSize()
Status getStatus()
int getTerracottaClusteredSize()
boolean isPersistent()
boolean isPinned(Object key)
boolean isTierPinned()
boolean put(Element element)
Element putIfAbsent(Element element)
boolean putWithWriter(Element element, CacheWriterManager writerManager)
Element remove(Object key)
void removeAll()
Element removeElement(Element element, ElementValueComparator comparator)
boolean removeIfNotPinned(Object key)
void removeNoReturn(Object key)
Element removeWithWriter(Object key, CacheWriterManager writerManager)
Element replace(Element element)
boolean replace(Element old, Element element, ElementValueComparator comparator)
void setInMemoryEvictionPolicy(Policy policy)
void setPinned(Object key, boolean pinned)
void unpinAll()
[Expand]
Inherited Methods
From class net.sf.ehcache.store.AbstractStore
From class java.lang.Object
From interface net.sf.ehcache.pool.PoolableStore
From interface net.sf.ehcache.store.Store
From interface net.sf.ehcache.store.TierableStore

Constants

public static final int DEFAULT_NUMBER_BYTE_BUFFERS

Constant Value: 64 (0x00000040)

Fields

public static final int DEFAULT_BUFFER_SIZE

Public Constructors

public DirectMemoryStore (Ehcache cache, Pool<PoolableStore> offHeapPool)

public DirectMemoryStore (Ehcache cache, Pool<PoolableStore> offHeapPool, boolean doNotifications)

public DirectMemoryStore (long offHeapSizeBytes)

Public Methods

public boolean bufferFull ()

public boolean containsKey (Object key)

public boolean containsKeyInMemory (Object key)

public boolean containsKeyOffHeap (Object key)

public boolean containsKeyOnDisk (Object key)

public synchronized void dispose ()

public void dump ()

public void dumpTotal ()

public boolean evictFromOnDisk (int count, long size)

public boolean evictFromOnHeap (int count, long size)

public void expireElements ()

public void fill (Element e)

public void flush ()

public Element get (Object key)

public long getApproximateDiskByteSize ()

public long getApproximateDiskCountSize ()

public float getApproximateDiskHitRate ()

public float getApproximateDiskMissRate ()

public long getApproximateHeapByteSize ()

public long getApproximateHeapCountSize ()

public float getApproximateHeapHitRate ()

public float getApproximateHeapMissRate ()

public Policy getInMemoryEvictionPolicy ()

public int getInMemorySize ()

public long getInMemorySizeInBytes ()

public Object getInternalContext ()

public List<Object> getKeys ()

public Object getMBean ()

public int getOffHeapSize ()

public long getOffHeapSizeInBytes ()

public int getOnDiskSize ()

public long getOnDiskSizeInBytes ()

public Set getPresentPinnedKeys ()

public Element getQuiet (Object key)

public int getSize ()

public Status getStatus ()

public int getTerracottaClusteredSize ()

public boolean isPersistent ()

public boolean isPinned (Object key)

public boolean isTierPinned ()

public boolean put (Element element)

Throws
CacheException

public Element putIfAbsent (Element element)

public boolean putWithWriter (Element element, CacheWriterManager writerManager)

Throws
CacheException

public Element remove (Object key)

public void removeAll ()

Throws
CacheException

public Element removeElement (Element element, ElementValueComparator comparator)

public boolean removeIfNotPinned (Object key)

public void removeNoReturn (Object key)

public Element removeWithWriter (Object key, CacheWriterManager writerManager)

Throws
CacheException

public Element replace (Element element)

public boolean replace (Element old, Element element, ElementValueComparator comparator)

public void setInMemoryEvictionPolicy (Policy policy)

public void setPinned (Object key, boolean pinned)

public void unpinAll ()