ehcache

net.sf.ehcache.store
Interface TerracottaStore

All Superinterfaces:
Store
All Known Implementing Classes:
AbstractTransactionStore, JtaLocalTransactionStore, LocalTransactionStore, XATransactionStore

public interface TerracottaStore
extends Store

Use for internal purpose only. Teaser: Stores of Terracotta clustered caches implements this interface.

Author:
Abhishek Sanoujam

Field Summary
 
Fields inherited from interface net.sf.ehcache.store.Store
CLUSTER_COHERENT, NODE_COHERENT
 
Method Summary
 WriteBehind createWriteBehind()
          WriteBehind createWriteBehind
 Set getLocalKeys()
          Returns set of keys from the cache which are present in the node locally.
 CacheConfiguration.TransactionalMode getTransactionalMode()
          Get the transactional mode of this store.
 void notifyCacheEventListenersChanged()
          Notify the underlying store that some change has occured in the set of registered cache listeners.
 Element unsafeGet(Object key)
          Returns the local value associated with the key.
 
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, put, putAll, putIfAbsent, putWithWriter, recalculateSize, remove, removeAll, removeAll, removeElement, removeStoreListener, removeWithWriter, replace, replace, setAttributeExtractors, setInMemoryEvictionPolicy, setNodeCoherent, waitUntilClusterCoherent
 

Method Detail

unsafeGet

Element unsafeGet(Object key)
Returns the local value associated with the key. Local value means that the object mapped to the key is present in the VM locally. In case its not, will return null. Note that even when returning null, the value may be present in the Terracotta server array.

This operation does not acquire any locks when doing the operation and may return stale values. This Operation does not update last usage statistics

Parameters:
key - the key
Returns:
the element associated with key or null

getLocalKeys

Set getLocalKeys()
Returns set of keys from the cache which are present in the node locally.

Returns:
set of keys present locally in the node

getTransactionalMode

CacheConfiguration.TransactionalMode getTransactionalMode()
Get the transactional mode of this store. The returned value is the String value of CacheConfiguration.TransactionalMode.

Returns:
a String representation of this store's transactional mode.
See Also:
CacheConfiguration.TransactionalMode

createWriteBehind

WriteBehind createWriteBehind()
WriteBehind createWriteBehind


notifyCacheEventListenersChanged

void notifyCacheEventListenersChanged()
Notify the underlying store that some change has occured in the set of registered cache listeners.


ehcache

Copyright 2001-2014, Terracotta, Inc.