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
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
RegionFactory
Lifecycle callback to perform any necessary initialization of the
underlying cache provider. Called exactly once during the
construction of a 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
Stop phase notification
protected abstract void releaseFromUse()
public boolean isMinimalPutsEnabledByDefault()
RegionFactory
By default should we perform "minimal puts" when using this second level cache implementation?
isMinimalPutsEnabledByDefault
in interface RegionFactory
public AccessType getDefaultAccessType()
RegionFactory
Get the default access type for any "user model" data
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
Generate 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 RegionFactory
public long getTimeout()
getTimeout
in interface RegionFactory
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.