public abstract class DirectAccessRegionTemplate extends AbstractRegion implements DirectAccessRegion
| Constructor and Description |
|---|
DirectAccessRegionTemplate(String name,
RegionFactory regionFactory,
StorageAccess storageAccess)
Constructs a
DirectAccessRegionTemplate. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all data cached in the region
|
void |
destroy()
The "end state" contract of the region's lifecycle.
|
Object |
getFromCache(Object key,
SharedSessionContractImplementor session)
Get value by key
|
StorageAccess |
getStorageAccess() |
void |
putIntoCache(Object key,
Object value,
SharedSessionContractImplementor session)
Put a value by key
|
getName, getRegionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getRegionFactorypublic DirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess)
DirectAccessRegionTemplate.name - - the unqualified region nameregionFactory - - the region factorystorageAccess - - the cache storage access strategypublic StorageAccess getStorageAccess()
public Object getFromCache(Object key, SharedSessionContractImplementor session)
DirectAccessRegiongetFromCache in interface DirectAccessRegionpublic void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
DirectAccessRegionputIntoCache in interface DirectAccessRegionpublic void clear()
Regionpublic void destroy()
RegionSessionFactory.close() to give
the region a chance to cleanup.Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.