| Modifier and Type | Field and Description |
|---|---|
| protected final Store | underlyingStore
The underlying store wrapped by this store |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | bufferFull()
Implements net. |
| public boolean | containsKeyInMemory(Object
The Element key key)Implements net. |
| public boolean | containsKeyOffHeap(Object
The Element key key)Implements net. |
| public boolean | containsKeyOnDisk(Object
The Element key key)Implements net. |
| public WriteBehind | createWriteBehind()
Implements net. WriteBehind createWriteBehind
|
| public void | |
| public Results | executeQuery(StoreQuery
query to execute query)Overrides net. Implements net. |
| public void | |
| public void | |
| public Policy | |
| public int | getInMemorySize()
Implements net. |
| public long | getInMemorySizeInBytes()
Implements net. |
| public Object | getInternalContext()
Implements net. |
| public Set | getLocalKeys()
Implements net. |
| public Object | getMBean()
Implements net. |
| public int | getOffHeapSize()
Implements net. |
| public long | getOffHeapSizeInBytes()
Implements net. |
| public Element | Returns: the mapped element, outside of any transactionthe key to look for key)Method to get to the |
| public int | getOnDiskSize()
Implements net. |
| public long | getOnDiskSizeInBytes()
Implements net. |
| public <T> Attribute | getSearchAttribute(String
the name of the attribute to retrieve attributeName)Overrides net. Implements net. |
| public Set | |
| public Status | |
| public CacheConfiguration. | getTransactionalMode()
Implements net. |
| public boolean | hasAbortedSizeOf()
Overrides net. Implements net. |
| public boolean | isCacheCoherent()
Overrides net. Implements net. |
| public boolean | isClusterCoherent()
Overrides net. Implements net. |
| public boolean | isNodeCoherent()
Overrides net. Implements net. |
| public void | notifyCacheEventListenersChanged()
Implements net. |
| public void | quickClear()
Implements net. |
| public int | quickSize()
Implements net. |
| public void | setAttributeExtractors(Map<String, AttributeExtractor> extractors)
Overrides net. Implements net. |
| public void | setInMemoryEvictionPolicy(Policy
the new policy policy)Implements net. |
| public void | setNodeCoherent(boolean
true transitions to coherent mode, false to incoherent mode coherent)Overrides net. Implements net. |
| public Element | unsafeGet(Object
the key key)Implements net. |
| public void | waitUntilClusterCoherent()
Overrides net. Implements net. |
| underlyingStore | back to summary |
|---|---|
| protected final Store underlyingStore The underlying store wrapped by this store | |
| AbstractTransactionStore | back to summary |
|---|---|
| protected AbstractTransactionStore(Store underlyingStore) Constructor
| |
| bufferFull | back to summary |
|---|---|
| public boolean bufferFull() Implements net. Doc from net. Some store types, such as the disk stores can fill their write buffers if puts come in too fast. The thread will wait for a short time before checking again.
| |
| containsKeyInMemory | back to summary |
|---|---|
| public boolean containsKeyInMemory(Object key) Implements net. Doc from net. A check to see if a key is in the Store and is currently held in memory.
| |
| containsKeyOffHeap | back to summary |
|---|---|
| public boolean containsKeyOffHeap(Object key) Implements net. Doc from net. A check to see if a key is in the Store and is currently held off-heap.
| |
| containsKeyOnDisk | back to summary |
|---|---|
| public boolean containsKeyOnDisk(Object key) Implements net. Doc from net. A check to see if a key is in the Store and is currently held on disk.
| |
| createWriteBehind | back to summary |
|---|---|
| public WriteBehind createWriteBehind() Implements net. Doc from net.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements net. Doc from net. Prepares for shutdown. | |
| executeQuery | back to summary |
|---|---|
| public Results executeQuery(StoreQuery query) Overrides net. Implements net. Doc from net. Execute the given query on this store
| |
| expireElements | back to summary |
|---|---|
| public void expireElements() Implements net. Doc from net. Expire all elements. | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements net. Doc from net. Flush elements to persistent store.
| |
| getInMemoryEvictionPolicy | back to summary |
|---|---|
| public Policy getInMemoryEvictionPolicy() Implements net.
| |
| getInMemorySize | back to summary |
|---|---|
| public int getInMemorySize() Implements net. Doc from net. Returns the current local in-memory store size
| |
| getInMemorySizeInBytes | back to summary |
|---|---|
| public long getInMemorySizeInBytes() Implements net. Doc from net. Gets the size of the in-memory portion of the store, in bytes. This method may be expensive to run, depending on implementation. Implementers may choose to return an approximate size.
| |
| getInternalContext | back to summary |
|---|---|
| public Object getInternalContext() Implements net. Doc from net. This should not be used, and will generally return null
| |
| getLocalKeys | back to summary |
|---|---|
| public Set Implements net. Doc from net. Returns set of keys from the cache which are present in the node locally.
| |
| getMBean | back to summary |
|---|---|
| public Object getMBean() Implements net. Doc from net. Optional implementation specific MBean exposed by the store.
| |
| getOffHeapSize | back to summary |
|---|---|
| public int getOffHeapSize() Implements net. Doc from net. Returns the current local off-heap store size
| |
| getOffHeapSizeInBytes | back to summary |
|---|---|
| public long getOffHeapSizeInBytes() Implements net. Doc from net. Gets the size of the off-heap portion of the store, in bytes.
| |
| getOldElement | back to summary |
|---|---|
| public Element getOldElement(Object key) Method to get to the | |
| getOnDiskSize | back to summary |
|---|---|
| public int getOnDiskSize() Implements net. Doc from net. Returns the current local on-disk store size
| |
| getOnDiskSizeInBytes | back to summary |
|---|---|
| public long getOnDiskSizeInBytes() Implements net. Doc from net. Gets the size of the on-disk portion of the store, in bytes.
| |
| getSearchAttribute | back to summary |
|---|---|
| public <T> Attribute Overrides net. Implements net. Doc from net. Retrieve the given named search attribute | |
| getSearchAttributes | back to summary |
|---|---|
| public Set Overrides net. Implements net.
| |
| getStatus | back to summary |
|---|---|
| public Status getStatus() Implements net. Doc from net. Returns the cache status. | |
| getTransactionalMode | back to summary |
|---|---|
| public CacheConfiguration. Implements net. Doc from net. Get the transactional mode of this store. The returned value is the String value of CacheConfiguration.TransactionalMode.
| |
| hasAbortedSizeOf | back to summary |
|---|---|
| public boolean hasAbortedSizeOf() Overrides net. Implements net. Doc from net. Checks if the cache may contain elements for which the SizeOf engine gave up and only partially calculated the size.
| |
| isCacheCoherent | back to summary |
|---|---|
| public boolean isCacheCoherent() Overrides net. Implements net. Doc from net. Indicates whether this store provides a coherent view of all the elements
in a cache.
Note that this is same as calling
| |
| isClusterCoherent | back to summary |
|---|---|
| public boolean isClusterCoherent() Overrides net. Implements net. Doc from net. Returns true if the cache is in coherent mode cluster-wide. Returns false otherwise. It applies to coherent clustering mechanisms only e.g. Terracotta
| |
| isNodeCoherent | back to summary |
|---|---|
| public boolean isNodeCoherent() Overrides net. Implements net. Doc from net. Returns true if the cache is in coherent mode for the current node. Returns false otherwise. It applies to coherent clustering mechanisms only e.g. Terracotta
| |
| notifyCacheEventListenersChanged | back to summary |
|---|---|
| public void notifyCacheEventListenersChanged() Implements net. Doc from net. Notify the underlying store that some change has occured in the set of registered cache listeners.
| |
| quickClear | back to summary |
|---|---|
| public void quickClear() Implements net. Doc from net. Remove all the contents of the store.
| |
| quickSize | back to summary |
|---|---|
| public int quickSize() Implements net. Doc from net. Get an approximate count of elements in the store.
| |
| setAttributeExtractors | back to summary |
|---|---|
| public void setAttributeExtractors(Map<String, AttributeExtractor> extractors) Overrides net. Implements net. Doc from net. Inform this store of the configured attribute extractors. Stores that will not invoke extractors are free to ignore this call
| |
| setInMemoryEvictionPolicy | back to summary |
|---|---|
| public void setInMemoryEvictionPolicy(Policy policy) Implements net. Doc from net. Sets the eviction policy strategy. The Store will use a policy at startup. The store may allow changing the eviction policy strategy dynamically. Otherwise implementations will throw an exception if this method is called.
| |
| setNodeCoherent | back to summary |
|---|---|
| public void setNodeCoherent(boolean coherent) Overrides net. Implements net. Doc from net. Sets the cache in coherent or incoherent mode for the current node depending on the parameter.
Calling It applies to coherent clustering mechanisms only e.g. Terracotta
| |
| unsafeGet | back to summary |
|---|---|
| public Element unsafeGet(Object key) Implements net. Doc from net. 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 | |
| waitUntilClusterCoherent | back to summary |
|---|---|
| public void waitUntilClusterCoherent() throws TerracottaNotRunningException, UnsupportedOperationException, InterruptedException Overrides net. Implements net. Doc from net. This method waits until the cache is in coherent mode in all the connected nodes. If the cache is already in coherent mode it returns immediately It applies to coherent clustering mechanisms only e.g. Terracotta
| |