CollectionRegionAccessStrategy to CacheConcurrencyStrategy.
| Modifier and Type | Field and Description |
|---|---|
| private final CacheConcurrencyStrategy | ccs
Deprecated
as a consequence of
CacheConcurrencyStrategy being deprecated.
|
| private final CollectionRegion | |
| private final Settings |
| Access | Constructor and Description |
|---|---|
| public | CollectionAccessStrategyAdapter(CollectionRegion region, CacheConcurrencyStrategy ccs, Settings settings)
Deprecated
as a consequence of
CacheConcurrencyStrategy being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | evict(Object
The key of the item to remove key)Implements org. |
| public void | evictAll()
Implements org. |
| public Object | get(Object
The key of the item to be retrieved. key, long a timestamp prior to the transaction start time txTimestamp)Implements org. |
| public CollectionRegion | getRegion()
Implements org. |
| public SoftLock | lockItem(Object
The key of the item to lock key, Object The item's current version value version)Implements org. |
| public SoftLock | lockRegion()
Implements org. |
| public boolean | putFromLoad(Object
The item key key, Object The item value, long a timestamp prior to the transaction start time txTimestamp, Object the item version number version)Implements org. |
| public boolean | putFromLoad(Object
The item key key, Object The item value, long a timestamp prior to the transaction start time txTimestamp, Object the item version number version, boolean Explicit minimalPut flag minimalPutOverride)Implements org. |
| public void | remove(Object
The key of the item to remove key)Implements org. |
| public void | removeAll()
Implements org. |
| public void | unlockItem(Object
The item key key, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| public void | unlockRegion(SoftLock
The lock previously obtained from lock)lockRegionImplements org. |
| ccs | back to summary |
|---|---|
| private final CacheConcurrencyStrategy ccs
Deprecated as a consequence of | |
| region | back to summary |
|---|---|
| private final CollectionRegion region | |
| settings | back to summary |
|---|---|
| private final Settings settings | |
| CollectionAccessStrategyAdapter | back to summary |
|---|---|
| public CollectionAccessStrategyAdapter(CollectionRegion region, CacheConcurrencyStrategy ccs, Settings settings)
Deprecated as a consequence of | |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| evict | back to summary |
|---|---|
| public void evict(Object key) throws CacheException Implements org. Doc from org. Forcibly evict an item from the cache immediately without regard for transaction isolation.
| |
| evictAll | back to summary |
|---|---|
| public void evictAll() throws CacheException Implements org. Doc from org. Forcibly evict all items from the cache immediately without regard for transaction isolation.
| |
| get | back to summary |
|---|---|
| public Object get(Object key, long txTimestamp) throws CacheException Implements org. Doc from org. Attempt to retrieve an object from the cache. Mainly used in attempting to resolve entities/collections from the second level cache.
| |
| getRegion | back to summary |
|---|---|
| public CollectionRegion getRegion() Implements org. Doc from org. Get the wrapped collection cache region
| |
| lockItem | back to summary |
|---|---|
| public SoftLock lockItem(Object key, Object version) throws CacheException Implements org. Doc from org. We are going to attempt to update/delete the keyed object. This method is used by "asynchronous" concurrency strategies. The returned object must be passed back to release(), to release the lock. Concurrency strategies which do not support client-visible locks may silently return null.
| |
| lockRegion | back to summary |
|---|---|
| public SoftLock lockRegion() throws CacheException Implements org. Doc from org. Lock the entire region
| |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException Implements org. Doc from org. Attempt to cache an object, after loading from the database.
| |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException Implements org. Doc from org. Attempt to cache an object, after loading from the database, explicitly specifying the minimalPut behavior.
| |
| remove | back to summary |
|---|---|
| public void remove(Object key) throws CacheException Implements org. Doc from org. Called after an item has become stale (before the transaction completes). This method is used by "synchronous" concurrency strategies.
| |
| removeAll | back to summary |
|---|---|
| public void removeAll() throws CacheException Implements org. Doc from org. Called to evict data from the entire region
| |
| unlockItem | back to summary |
|---|---|
| public void unlockItem(Object key, SoftLock lock) throws CacheException Implements org. Doc from org. Called when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion. This method is used by "asynchronous" concurrency strategies.
| |
| unlockRegion | back to summary |
|---|---|
| public void unlockRegion(SoftLock lock) throws CacheException Implements org. Doc from org. Called after we have finished the attempted invalidation of the entire region
| |