public class MapStorageAccessImpl extends Object implements DomainDataStorageAccess
| Constructor and Description |
|---|
MapStorageAccessImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache(SharedSessionContractImplementor session)
Clear data from the cache
|
boolean |
contains(Object key)
Does the cache contain this key?
|
void |
evictData()
Clear all data regardless of transaction/locking
|
void |
evictData(Object key)
Remove the entry regardless of transaction/locking
|
Object |
getFromCache(Object key,
SharedSessionContractImplementor session)
Get an item from the cache.
|
protected ConcurrentMap |
getOrMakeDataMap() |
void |
putIntoCache(Object key,
Object value,
SharedSessionContractImplementor session)
Put an item into the cache
|
void |
release()
Release any resources.
|
void |
removeFromCache(Object key,
SharedSessionContractImplementor session)
Remove an item from the cache by key
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitputFromLoadpublic boolean contains(Object key)
StorageAccesscontains in interface StorageAccesspublic Object getFromCache(Object key, SharedSessionContractImplementor session)
StorageAccessgetFromCache in interface StorageAccesspublic void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
StorageAccessputIntoCache in interface StorageAccessprotected ConcurrentMap getOrMakeDataMap()
public void removeFromCache(Object key, SharedSessionContractImplementor session)
StorageAccessremoveFromCache in interface StorageAccesspublic void clearCache(SharedSessionContractImplementor session)
StorageAccessclearCache in interface StorageAccesspublic void evictData()
StorageAccessevictData in interface StorageAccesspublic void evictData(Object key)
StorageAccessevictData in interface StorageAccesspublic void release()
StorageAccessrelease in interface StorageAccessCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.