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, getRegionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getRegionFactory
public 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)
DirectAccessRegion
getFromCache
in interface DirectAccessRegion
public void putIntoCache(Object key, Object value, SharedSessionContractImplementor session)
DirectAccessRegion
putIntoCache
in interface DirectAccessRegion
public void clear()
Region
public void destroy()
Region
SessionFactory.close()
to give
the region a chance to cleanup.Copyright © 2018 JBoss by Red Hat. All rights reserved.