|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.store.AbstractStore
public abstract class AbstractStore
| Field Summary |
|---|
| Fields inherited from interface net.sf.ehcache.store.Store |
|---|
CLUSTER_COHERENT, NODE_COHERENT |
| Constructor Summary | |
|---|---|
AbstractStore()
|
|
| Method Summary | ||
|---|---|---|
void |
addStoreListener(StoreListener listener)
Add a listener to the store. |
|
Results |
executeQuery(StoreQuery query)
Execute the given query on this store |
|
protected List<StoreListener> |
getEventListenerList()
onLoad initializer |
|
|
getSearchAttribute(String attributeName)
Retrieve the given named search attribute |
|
boolean |
isCacheCoherent()
Indicates whether this store provides a coherent view of all the elements in a cache. |
|
boolean |
isClusterCoherent()
Returns true if the cache is in coherent mode cluster-wide. |
|
boolean |
isNodeCoherent()
Returns true if the cache is in coherent mode for the current node. |
|
void |
removeStoreListener(StoreListener listener)
Remove listener from store. |
|
void |
setAttributeExtractors(Map<String,AttributeExtractor> extractors)
Inform this store of the configured attribute extractors. |
|
void |
setNodeCoherent(boolean coherent)
Sets the cache in coherent or incoherent mode for the current node depending on the parameter. |
|
void |
waitUntilClusterCoherent()
This method waits until the cache is in coherent mode in all the connected nodes. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.ehcache.store.Store |
|---|
bufferFull, containsKey, containsKeyInMemory, containsKeyOffHeap, containsKeyOnDisk, dispose, expireElements, flush, get, getInMemoryEvictionPolicy, getInMemorySize, getInMemorySizeInBytes, getInternalContext, getKeys, getMBean, getOffHeapSize, getOffHeapSizeInBytes, getOnDiskSize, getOnDiskSizeInBytes, getQuiet, getSize, getStatus, getTerracottaClusteredSize, put, putIfAbsent, putWithWriter, remove, removeAll, removeElement, removeWithWriter, replace, replace, setInMemoryEvictionPolicy |
| Constructor Detail |
|---|
public AbstractStore()
| Method Detail |
|---|
protected List<StoreListener> getEventListenerList()
public boolean isCacheCoherent()
Store.isClusterCoherent() (introduced since 2.0)
Use Store.isNodeCoherent() to find out if the cache is coherent in the current node in the cluster
isCacheCoherent in interface Storetrue if the store is coherent; or false if the
store potentially splits the cache storage with another store or
isn't internally coherentStore.isCacheCoherent()public boolean isClusterCoherent()
isClusterCoherent in interface StoreStore.isClusterCoherent()public boolean isNodeCoherent()
isNodeCoherent in interface StoreStore.isNodeCoherent()
public void setNodeCoherent(boolean coherent)
throws UnsupportedOperationException
setNodeCoherent(true) when the cache is already in coherent mode or
calling setNodeCoherent(false) when already in incoherent mode will be a no-op.
It applies to coherent clustering mechanisms only e.g. Terracotta
setNodeCoherent in interface Storecoherent - true transitions to coherent mode, false to incoherent mode
UnsupportedOperationException - if this store does not support cache coherence, like RMI replicationStore.setNodeCoherent(boolean)
public void waitUntilClusterCoherent()
throws UnsupportedOperationException,
TerracottaNotRunningException,
InterruptedException
waitUntilClusterCoherent in interface StoreInterruptedException
TerracottaNotRunningException
UnsupportedOperationException - if this store does not support cache coherence, like RMI replicationStore.waitUntilClusterCoherent()public void addStoreListener(StoreListener listener)
addStoreListener in interface StoreStore.addStoreListener(net.sf.ehcache.store.StoreListener)public void removeStoreListener(StoreListener listener)
removeStoreListener in interface StoreStore.removeStoreListener(net.sf.ehcache.store.StoreListener)public void setAttributeExtractors(Map<String,AttributeExtractor> extractors)
setAttributeExtractors in interface Storepublic Results executeQuery(StoreQuery query)
executeQuery in interface Storequery - query to execute
public <T> Attribute<T> getSearchAttribute(String attributeName)
throws CacheException
getSearchAttribute in interface StoreT - type of the attributeattributeName - the name of the attribute to retrieve
CacheException
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||