The accessor will then lock for all operations:
| Modifier and Type | Field and Description |
|---|---|
| private final ElementValueComparator |
| Access | Constructor and Description |
|---|---|
| public | StronglyConsistentCacheAccessor(Ehcache
a clustered cache configured with eventual consistency underlyingCache)Constructor accepting the cache to be decorated. |
| Modifier and Type | Method and Description |
|---|---|
| public Element | get(Object
an Object value key)Overrides net. Implements net. |
| public Element | get(Serializable
a serializable value key)Overrides net. Implements net. |
| public Map | getAll(Collection<?>
a collection of keys for which value is to be fetched keys)Overrides net. Implements net. |
| public Map | getAllWithLoader(Collection<E>
a collection of keys to be returned/loaded keys, Object an argument to pass to the CacheLoader. loaderArgument)Overrides net. Implements net. |
| public Element | getQuiet(Object
a serializable value key)Overrides net. Implements net. |
| public Element | getQuiet(Serializable
a serializable value key)Overrides net. Implements net. |
| public Element | getWithLoader(Object
key whose associated value is to be returned. key, CacheLoader the override loader to use. If null, the cache's default loader will be used loader, Object an argument to pass to the CacheLoader. loaderArgument)Overrides net. Implements net. |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers doNotNotifyCacheReplicators)Overrides net. Implements net. |
| public void | put(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Overrides net. Implements net. |
| public void | putAll(Collection<Element>
the collection of elements to be put in the cache. elements)Overrides net. Implements net. |
| public Element | putIfAbsent(Element
element to be added element, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers doNotNotifyCacheReplicators)Overrides net. Implements net. |
| public Element | putIfAbsent(Element
element to be added element)Overrides net. Implements net. |
| public void | putQuiet(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Overrides net. Implements net. |
| public void | putWithWriter(Element
An object. If Serializable it can fully participate in replication and the DiskStore. element)Overrides net. Implements net. |
| public boolean | remove(Object
of the element to remove key, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers doNotNotifyCacheReplicators)Overrides net. Implements net. net. from the Cache.
|
| public boolean | remove(Object
the key of the element to remove key)Overrides net. Implements net. net. from the Cache.
|
| public boolean | remove(Serializable
the key of the element to remove key, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer, in which case this put should not initiate a
further notification to doNotNotifyCacheReplicators cache peers doNotNotifyCacheReplicators)Overrides net. Implements net. net. from the Cache.
|
| public boolean | remove(Serializable
the key of the element to remove key)Overrides net. Implements net. net. from the Cache.
|
| public void | removeAll(Collection<?>
a collection of keys to operate on keys)Overrides net. Implements net. net. from the Cache.
|
| public void | removeAll(Collection<?>
a collection of keys to operate on keys, boolean whether the put is coming from a doNotNotifyCacheReplicators cache peer,
in which case this put should not initiate a further notification to doNotNotifyCacheReplicators cache peers doNotNotifyCacheReplicators)Overrides net. Implements net. |
| public Element | removeAndReturnElement(Object
the key of the element to operate on key)Overrides net. Implements net. |
| public boolean | removeElement(Element
Element to be removed element)Overrides net. Implements net. |
| public boolean | removeQuiet(Object
of the element to remove key)Overrides net. Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeQuiet(Serializable
of the element to remove key)Overrides net. Implements net. net. from the Cache, without notifying listeners.
|
| public boolean | removeWithWriter(Object
of the element to remove key)Overrides net. Implements net. net. from the Cache and any stores it might be in. This also removes through
to a CacheWriter.
|
| public boolean | replace(Element
Element to be test against old, Element Element to be cached element)Overrides net. Implements net. |
| public Element | replace(Element
Element to be cached element)Overrides net. Implements net. |