Deprecated
This is the Ehcache specific equivalent to Hibernate's NonstrictReadWriteCache.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| 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 | evict(Object key)
Implements org. |
| public Object | get(Object key, long
a timestamp prior to the transaction start time txTimestamp)Implements org. |
| public boolean | insert(Object key, Object value, Object currentVersion)
Implements org. |
| public SoftLock | lock(Object key, Object version)
Implements 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 String | |
| public boolean |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides net. | |
| EhcacheNonstrictReadWriteCache | back to summary |
|---|---|
| public EhcacheNonstrictReadWriteCache() | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(Object key, Object value, Object version) throws CacheException Implements org. A No-Op. | |
| afterUpdate | back to summary |
|---|---|
| public boolean afterUpdate(Object key, Object value, Object version, SoftLock lock) throws CacheException Implements org. Removes the invalidated item. | |
| evict | back to summary |
|---|---|
| public void evict(Object key) throws CacheException Implements org. Removes the stale item. | |
| 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.
| |
| insert | back to summary |
|---|---|
| public boolean insert(Object key, Object value, Object currentVersion) throws CacheException Implements org. A No-Op, since we are an asynchronous cache concurrency strategy. | |
| lock | back to summary |
|---|---|
| public SoftLock lock(Object key, Object version) throws CacheException Implements org. Caching is non-strict so soft locks are not implemented. | |
| put | back to summary |
|---|---|
| public boolean put(Object key, Object value, long txTimestamp, Object version, Comparator<T> versionComparator, boolean minimalPut) throws CacheException Implements org. Doc from org. Attempt to cache an object, after loading from the database.
| |
| release | back to summary |
|---|---|
| public void release(Object key, SoftLock lock) throws CacheException Implements org. Removes the invalidated item. | |
| 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) throws CacheException Implements org. Removes the invalidated item. | |