| Access | Constructor and Description |
|---|---|
| public | NonStrictReadWriteEhcacheEntityRegionAccessStrategy(EhcacheEntityRegion region, Settings settings)
Create a non-strict read/write access strategy accessing the given collection 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. false since this is a non-strict read/write cache access strategy
|
| 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 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 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. false since this is an asynchronous cache access strategy.
|
| public SoftLock | lockItem(Object
The key of the item to lock key, Object The item's current version value 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 abstract net. Implements org. |
| public void | remove(Object
The key of the item to remove key)Overrides net. Implements org. |
| public void | unlockItem(Object
The item key key, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| public boolean | update(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)Implements org. |
| NonStrictReadWriteEhcacheEntityRegionAccessStrategy | back to summary |
|---|---|
| public NonStrictReadWriteEhcacheEntityRegionAccessStrategy(EhcacheEntityRegion region, Settings settings) Create a non-strict read/write access strategy accessing the given collection region. | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(Object key, Object value, Object version) throws CacheException Implements org. Returns
| |
| 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.
| |
| 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 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. Returns
| |
| lockItem | back to summary |
|---|---|
| public SoftLock lockItem(Object key, Object version) throws CacheException Implements org. Since this is a non-strict read/write strategy item locking is not used.
| |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException Implements abstract net. 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 Overrides net. Implements org. Doc from org. Called after an item has become stale (before the transaction completes). This method is used by "synchronous" concurrency strategies.
| |
| unlockItem | back to summary |
|---|---|
| public void unlockItem(Object key, SoftLock lock) throws CacheException Implements org. Since this is a non-strict read/write strategy item locking is not used.
| |