public abstract class AbstractRegionFactory extends Object implements RegionFactory
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES
Legacy names that used to be the default for the query results region.
|
static List<String> |
LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
Legacy names that used to be the default for the update timestamps region.
|
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME| Constructor and Description |
|---|
AbstractRegionFactory() |
| Modifier and Type | Method and Description |
|---|---|
CacheTransactionSynchronization |
createTransactionContext(SharedSessionContractImplementor session) |
AccessType |
getDefaultAccessType()
Get the default access type for any "user model" data
|
protected SessionFactoryOptions |
getOptions() |
long |
getTimeout() |
boolean |
isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second
level cache implementation?
|
protected boolean |
isStarted() |
long |
nextTimestamp()
Generate a timestamp.
|
protected abstract void |
prepareForUse(SessionFactoryOptions settings,
Map configValues) |
String |
qualify(String regionName) |
protected abstract void |
releaseFromUse() |
void |
start(SessionFactoryOptions settings,
Map configValues)
Lifecycle callback to perform any necessary initialization of the
underlying cache provider.
|
void |
stop()
Stop phase notification
|
protected boolean |
verifiedStartStatus() |
protected void |
verifyStarted() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildDomainDataRegion, buildQueryResultsRegion, buildTimestampsRegionpublic static final List<String> LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES
Legacy names that used to be the default for the query results region.
protected boolean isStarted()
protected void verifyStarted()
protected boolean verifiedStartStatus()
protected SessionFactoryOptions getOptions()
public final void start(SessionFactoryOptions settings, Map configValues) throws CacheException
RegionFactoryLifecycle callback to perform any necessary initialization of the
underlying cache provider. Called exactly once during the
construction of a SessionFactoryImpl.
start in interface RegionFactorysettings - The settings in effect.configValues - The available config valuesCacheException - Indicates problems starting the L2 cache impl;
considered as a sign to stop SessionFactory
building.protected abstract void prepareForUse(SessionFactoryOptions settings, Map configValues)
public final void stop()
StoppableStop phase notification
protected abstract void releaseFromUse()
public boolean isMinimalPutsEnabledByDefault()
RegionFactoryBy default should we perform "minimal puts" when using this second level cache implementation?
isMinimalPutsEnabledByDefault in interface RegionFactorypublic AccessType getDefaultAccessType()
RegionFactoryGet the default access type for any "user model" data
getDefaultAccessType in interface RegionFactorypublic String qualify(String regionName)
qualify in interface RegionFactorypublic CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
createTransactionContext in interface RegionFactorypublic long nextTimestamp()
RegionFactoryGenerate a timestamp. This value is generally used for purpose of
locking/unlocking cache content depending upon the access-strategy being
used. The intended consumer of this method is the Session to manage
its SharedSessionContractImplementor.getTransactionStartTimestamp() value.
It is also expected that this be the value used for this’s RegionFactory’s CacheTransactionContext
nextTimestamp in interface RegionFactorypublic long getTimeout()
getTimeout in interface RegionFactoryCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.