| Access | Constructor and Description |
|---|---|
| public | ReadWriteEhcacheEntityRegionAccessStrategy(EhcacheEntityRegion region, Settings settings)
Create a read/write access strategy accessing the given entity region. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInsert(Object
The item key key, Object The item value, Object The item's version value version)Implements org. |
| public boolean | afterUpdate(Object
The item key key, Object The item value, Object The item's current version value currentVersion, Object The item's previous version value previousVersion, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| public EntityRegion | getRegion()
Implements org. |
| public boolean | insert(Object
The item key key, Object The item value, Object The item's version value version)Implements org. |
| public boolean |
| ReadWriteEhcacheEntityRegionAccessStrategy | back to summary |
|---|---|
| public ReadWriteEhcacheEntityRegionAccessStrategy(EhcacheEntityRegion region, Settings settings) Create a read/write access strategy accessing the given entity region. | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(Object key, Object value, Object version) throws CacheException Implements org. Doc from org. Called after an item has been inserted (after the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies. Inserts will only succeed if there is no existing value mapped to this key.
| |
| afterUpdate | back to summary |
|---|---|
| public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException Implements org. Doc from org. Called after an item has been updated (after the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies. Updates will only succeed if this entry was locked by this transaction and exclusively this transaction for the duration of this transaction. It is important to also note that updates will fail if the soft-lock expired during the course of this transaction.
| |
| getRegion | back to summary |
|---|---|
| public EntityRegion getRegion() Implements org. Doc from org. Get the wrapped entity cache region
| |
| insert | back to summary |
|---|---|
| public boolean insert(Object key, Object value, Object version) throws CacheException Implements org. A no-op since this is an asynchronous cache access strategy.
| |