Deprecated
as a consequence of CacheConcurrencyStrategy being deprecated. See corresponding docs for further information.
for a much stricter algorithm
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInsert(Object key, Object value, Object version)
Implements org. |
| public boolean | afterUpdate(Object key, Object value, Object version, SoftLock lock)
Implements org. |
| public void | clear()
Implements org. |
| public void | |
| public void | |
| public Object | get(Object key, long
a timestamp prior to the transaction start time txTimestamp)Implements org. |
| public Cache | getCache()
Implements org.
Deprecated
as a consequence of
Get the wrapped cache implementation
Cache being deprecated.
|
| public String | getRegionName()
Implements org. |
| public boolean | insert(Object key, Object value, Object currentVersion)
Implements org. |
| public SoftLock | Returns: null, no lockImplements org. |
| public boolean | put(Object key, Object value, long
a timestamp prior to the transaction start time txTimestamp, Object the item version number version, Comparator<T> a comparator used to compare version numbers versionComparator, boolean indicates that the cache should avoid a put is the item is already cached minimalPut)Implements org. |
| public void | release(Object key, SoftLock lock)
Implements org. |
| public void | remove(Object key)
Implements org. |
| public void | setCache(Cache cache)
Implements org.
Deprecated
as a consequence of
Set the underlying cache implementation.
Cache being deprecated.
|
| public String | |
| public boolean |
| cache | back to summary |
|---|---|
| private Cache cache
Deprecated as a consequence of | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| NonstrictReadWriteCache | back to summary |
|---|---|
| public NonstrictReadWriteCache() | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(Object key, Object value, Object version) throws CacheException Implements org. Do nothing. | |
| afterUpdate | back to summary |
|---|---|
| public boolean afterUpdate(Object key, Object value, Object version, SoftLock lock) throws CacheException Implements org. Invalidate the item (again, for safety). | |
| clear | back to summary |
|---|---|
| public void clear() throws CacheException Implements org. Doc from org. Evict all items from the cache immediately. | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Doc from org. Clean up all resources. | |
| evict | back to summary |
|---|---|
| public void evict(Object key) throws CacheException Implements org. Invalidate the item | |
| get | back to summary |
|---|---|
| public Object get(Object key, long txTimestamp) throws CacheException Implements org. Get the most recent version, if available.
| |
| getCache | back to summary |
|---|---|
| public Cache getCache() Implements org. Doc from org. Deprecated as a consequence of Get the wrapped cache implementation | |
| getRegionName | back to summary |
|---|---|
| public String getRegionName() Implements org. Doc from org. Get the cache region name | |
| insert | back to summary |
|---|---|
| public boolean insert(Object key, Object value, Object currentVersion) Implements org. Invalidate the item | |
| lock | back to summary |
|---|---|
| public SoftLock lock(Object key, Object version) throws CacheException Implements org. Do nothing.
| |
| put | back to summary |
|---|---|
| public boolean put(Object key, Object value, long txTimestamp, Object version, Comparator<T> versionComparator, boolean minimalPut) throws CacheException Implements org. Add an item to the cache.
| |
| release | back to summary |
|---|---|
| public void release(Object key, SoftLock lock) throws CacheException Implements org. Invalidate the item (again, for safety). | |
| remove | back to summary |
|---|---|
| public void remove(Object key) throws CacheException Implements org. Doc from org. Evict an item from the cache immediately (without regard for transaction isolation). | |
| setCache | back to summary |
|---|---|
| public void setCache(Cache cache) Implements org. Doc from org. Deprecated as a consequence of Set the underlying cache implementation. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| update | back to summary |
|---|---|
| public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) Implements org. Do nothing. | |