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
protected boolean isStarted()
protected void verifyStarted()
protected boolean verifiedStartStatus()
protected SessionFactoryOptions getOptions()
public final void start(SessionFactoryOptions settings, Map configValues) throws CacheException
RegionFactorySessionFactoryImpl.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()
Stoppableprotected abstract void releaseFromUse()
public boolean isMinimalPutsEnabledByDefault()
RegionFactoryisMinimalPutsEnabledByDefault in interface RegionFactorypublic AccessType getDefaultAccessType()
RegionFactorygetDefaultAccessType in interface RegionFactorypublic String qualify(String regionName)
qualify in interface RegionFactorypublic CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
createTransactionContext in interface RegionFactorypublic long nextTimestamp()
RegionFactorySharedSessionContractImplementor.getTransactionStartTimestamp() value.
It is also expected that this be the value used for this's RegionFactory's
CacheTransactionContextnextTimestamp in interface RegionFactorypublic long getTimeout()
getTimeout in interface RegionFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.