Class JCacheAccessImpl
java.lang.Object
org.hibernate.cache.jcache.internal.JCacheAccessImpl
- All Implemented Interfaces:
DomainDataStorageAccess
,StorageAccess
StorageAccess implementation wrapping a JCache
Cache
reference.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear data from the cacheboolean
Does the cache contain this key?void
Clear all data regardless of transaction/lockingvoid
Remove the entry regardless of transaction/lockinggetFromCache
(Object key, SharedSessionContractImplementor session) Get an item from the cache.void
putIntoCache
(Object key, Object value, SharedSessionContractImplementor session) Put an item into the cachevoid
release()
Release any resources.void
removeFromCache
(Object key, SharedSessionContractImplementor session) Remove an item from the cache by keyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.cache.spi.support.DomainDataStorageAccess
putFromLoad
-
Constructor Details
-
JCacheAccessImpl
-
-
Method Details
-
getUnderlyingCache
-
contains
Description copied from interface:StorageAccess
Does the cache contain this key?- Specified by:
contains
in interfaceStorageAccess
-
evictData
Description copied from interface:StorageAccess
Remove the entry regardless of transaction/locking- Specified by:
evictData
in interfaceStorageAccess
-
evictData
public void evictData()Description copied from interface:StorageAccess
Clear all data regardless of transaction/locking- Specified by:
evictData
in interfaceStorageAccess
-
release
public void release()Description copied from interface:StorageAccess
Release any resources. Called during cache shutdown- Specified by:
release
in interfaceStorageAccess
-