Package org.hibernate.testing.cache
Class MapStorageAccessImpl
java.lang.Object
org.hibernate.testing.cache.MapStorageAccessImpl
- All Implemented Interfaces:
org.hibernate.cache.spi.support.DomainDataStorageAccess,org.hibernate.cache.spi.support.StorageAccess
public class MapStorageAccessImpl
extends Object
implements org.hibernate.cache.spi.support.DomainDataStorageAccess
StorageAccess impl wrapping a simple data Map (ConcurrentMap)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(org.hibernate.engine.spi.SharedSessionContractImplementor session) booleanvoidvoidgetFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session) getFromData(Object key) protected ConcurrentMapvoidputIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) voidrelease()voidremoveFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.support.DomainDataStorageAccess
putFromLoad
-
Constructor Details
-
MapStorageAccessImpl
public MapStorageAccessImpl()
-
-
Method Details
-
getFromData
-
contains
- Specified by:
containsin interfaceorg.hibernate.cache.spi.support.StorageAccess
-
getOrMakeDataMap
-
evictData
public void evictData()- Specified by:
evictDatain interfaceorg.hibernate.cache.spi.support.StorageAccess
-
evictData
- Specified by:
evictDatain interfaceorg.hibernate.cache.spi.support.StorageAccess
-
release
public void release()- Specified by:
releasein interfaceorg.hibernate.cache.spi.support.StorageAccess
-