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, wait
buildDomainDataRegion, buildQueryResultsRegion, buildTimestampsRegion
public 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
RegionFactory
SessionFactoryImpl
.start
in interface RegionFactory
settings
- 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()
Stoppable
protected abstract void releaseFromUse()
public boolean isMinimalPutsEnabledByDefault()
RegionFactory
isMinimalPutsEnabledByDefault
in interface RegionFactory
public AccessType getDefaultAccessType()
RegionFactory
getDefaultAccessType
in interface RegionFactory
public String qualify(String regionName)
qualify
in interface RegionFactory
public CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
createTransactionContext
in interface RegionFactory
public long nextTimestamp()
RegionFactory
SharedSessionContractImplementor.getTransactionStartTimestamp()
value.
It is also expected that this be the value used for this's RegionFactory's
CacheTransactionContextnextTimestamp
in interface RegionFactory
public long getTimeout()
getTimeout
in interface RegionFactory
Copyright © 2019 JBoss by Red Hat. All rights reserved.