ehcache

net.sf.ehcache.store
Interface TierableStore

All Superinterfaces:
Store
All Known Implementing Classes:
DiskStore, MemoryStore, NotifyingMemoryStore, NullStore

public interface TierableStore
extends Store

This is the interface for all tierable stores.

Author:
Ludovic Orban

Field Summary
 
Fields inherited from interface net.sf.ehcache.store.Store
CLUSTER_COHERENT, NODE_COHERENT
 
Method Summary
 void fill(Element e)
          Add this element to the cache if the key is already present or the add can succeed without resorting to eviction.
 boolean removeIfTierNotPinned(Object key)
          Removes the element if the tier.
 void removeNoReturn(Object key)
          Removes an item from the cache.
 
Methods inherited from interface net.sf.ehcache.store.Store
addStoreListener, bufferFull, containsKey, containsKeyInMemory, containsKeyOffHeap, containsKeyOnDisk, dispose, executeQuery, expireElements, flush, get, getAll, getAllQuiet, getInMemoryEvictionPolicy, getInMemorySize, getInMemorySizeInBytes, getInternalContext, getKeys, getMBean, getOffHeapSize, getOffHeapSizeInBytes, getOnDiskSize, getOnDiskSizeInBytes, getQuiet, getSearchAttribute, getSize, getStatus, getTerracottaClusteredSize, hasAbortedSizeOf, isCacheCoherent, isClusterCoherent, isNodeCoherent, isPinned, put, putAll, putIfAbsent, putWithWriter, recalculateSize, remove, removeAll, removeAll, removeElement, removeStoreListener, removeWithWriter, replace, replace, setAttributeExtractors, setInMemoryEvictionPolicy, setNodeCoherent, setPinned, unpinAll, waitUntilClusterCoherent
 

Method Detail

fill

void fill(Element e)
Add this element to the cache if the key is already present or the add can succeed without resorting to eviction.

Parameters:
e - element to be added

removeIfTierNotPinned

boolean removeIfTierNotPinned(Object key)
Removes the element if the tier. This method will remove if the element is pinned and present in the store

Parameters:
key - the key to the element
Returns:
true if an element was removed
See Also:
Store.remove(Object)

removeNoReturn

void removeNoReturn(Object key)
Removes an item from the cache.


ehcache

true