|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.hibernate.access.AbstractAccessDelegate<T>
public abstract class AbstractAccessDelegate<T extends HazelcastRegion>
| Field Summary | |
|---|---|
protected ILogger |
LOG
|
| Constructor Summary | |
|---|---|
protected |
AbstractAccessDelegate(T hazelcastRegion)
|
| Method Summary | |
|---|---|
void |
evict(Object key)
Forcibly evict an item from the cache immediately without regard for transaction isolation. |
void |
evictAll()
Forcibly evict all items from the cache immediately without regard for transaction isolation. |
Object |
get(Object key,
long txTimestamp)
Attempt to retrieve an object from the cache. |
IMap |
getCache()
|
T |
getHazelcastRegion()
Get the wrapped cache region |
boolean |
insert(Object key,
Object value,
Object version)
This is an asynchronous cache access strategy. |
org.hibernate.cache.access.SoftLock |
lockRegion()
NO-OP |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
Attempt to cache an object, after loading from the database. |
void |
remove(Object key)
Called after an item has become stale (before the transaction completes). |
void |
removeAll()
Called to evict data from the entire region |
void |
unlockRegion(org.hibernate.cache.access.SoftLock lock)
NO-OP |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
This is an asynchronous cache access strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hazelcast.hibernate.access.AccessDelegate |
|---|
afterInsert, afterUpdate, lockItem, putFromLoad, unlockItem |
| Field Detail |
|---|
protected final ILogger LOG
| Constructor Detail |
|---|
protected AbstractAccessDelegate(T hazelcastRegion)
| Method Detail |
|---|
public final T getHazelcastRegion()
AccessDelegate
getHazelcastRegion in interface AccessDelegate<T extends HazelcastRegion>public final IMap getCache()
getCache in interface AccessDelegate<T extends HazelcastRegion>
public Object get(Object key,
long txTimestamp)
throws org.hibernate.cache.CacheException
AccessDelegate
get in interface AccessDelegate<T extends HazelcastRegion>key - The key of the item to be retrieved.txTimestamp - a timestamp prior to the transaction start time
org.hibernate.cache.CacheException - Propogated from underlying Region
public boolean putFromLoad(Object key,
Object value,
long txTimestamp,
Object version)
throws org.hibernate.cache.CacheException
AccessDelegate
putFromLoad in interface AccessDelegate<T extends HazelcastRegion>key - The item keyvalue - The itemtxTimestamp - a timestamp prior to the transaction start timeversion - the item version number
org.hibernate.cache.CacheException - Propogated from underlying Region
public void remove(Object key)
throws org.hibernate.cache.CacheException
AccessDelegate
remove in interface AccessDelegate<T extends HazelcastRegion>key - The key of the item to remove
org.hibernate.cache.CacheException - Propogated from underlying Region
public void removeAll()
throws org.hibernate.cache.CacheException
AccessDelegate
removeAll in interface AccessDelegate<T extends HazelcastRegion>org.hibernate.cache.CacheException - Propogated from underlying Region
public void evict(Object key)
throws org.hibernate.cache.CacheException
AccessDelegate
evict in interface AccessDelegate<T extends HazelcastRegion>key - The key of the item to remove
org.hibernate.cache.CacheException - Propogated from underlying Region
public void evictAll()
throws org.hibernate.cache.CacheException
AccessDelegate
evictAll in interface AccessDelegate<T extends HazelcastRegion>org.hibernate.cache.CacheException - Propogated from underlying Region
public org.hibernate.cache.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
lockRegion in interface AccessDelegate<T extends HazelcastRegion>org.hibernate.cache.CacheException - Propogated from underlying Region
public void unlockRegion(org.hibernate.cache.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockRegion in interface AccessDelegate<T extends HazelcastRegion>lock - The lock previously obtained from AccessDelegate.lockRegion()
org.hibernate.cache.CacheException - Propogated from underlying Region
public boolean insert(Object key,
Object value,
Object version)
throws org.hibernate.cache.CacheException
insert in interface AccessDelegate<T extends HazelcastRegion>key - The item keyvalue - The itemversion - The item's version value
org.hibernate.cache.CacheException - Propogated from underlying Region
public boolean update(Object key,
Object value,
Object currentVersion,
Object previousVersion)
throws org.hibernate.cache.CacheException
update in interface AccessDelegate<T extends HazelcastRegion>key - The item keyvalue - The itemcurrentVersion - The item's current version valuepreviousVersion - The item's previous version value
org.hibernate.cache.CacheException - Propogated from underlying Region
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||