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, wait
putFromLoad
public boolean contains(Object key)
StorageAccess
contains
in interface StorageAccess
public Object getFromCache(Object key, SharedSessionContractImplementor session)
StorageAccess
getFromCache
in interface StorageAccess
public void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
StorageAccess
putIntoCache
in interface StorageAccess
protected ConcurrentMap getOrMakeDataMap()
public void removeFromCache(Object key, SharedSessionContractImplementor session)
StorageAccess
removeFromCache
in interface StorageAccess
public void clearCache(SharedSessionContractImplementor session)
StorageAccess
clearCache
in interface StorageAccess
public void evictData()
StorageAccess
evictData
in interface StorageAccess
public void evictData(Object key)
StorageAccess
evictData
in interface StorageAccess
public void release()
StorageAccess
release
in interface StorageAccess
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.