public abstract class AbstractStoreConfigurationBuilder<T extends StoreConfiguration,S extends AbstractStoreConfigurationBuilder<T,S>> extends AbstractPersistenceConfigurationChildBuilder implements StoreConfigurationBuilder<T,S>
Modifier and Type | Field and Description |
---|---|
protected AsyncStoreConfigurationBuilder<S> |
async |
protected AttributeSet |
attributes |
protected ConfigurationBuilder |
builder |
protected boolean |
fetchPersistentState
Deprecated.
|
protected boolean |
ignoreModifications
Deprecated.
|
protected boolean |
preload
Deprecated.
|
protected Properties |
properties
Deprecated.
|
protected boolean |
purgeOnStartup
Deprecated.
|
protected boolean |
shared
Deprecated.
|
protected SingletonStoreConfigurationBuilder<S> |
singletonStore |
Constructor and Description |
---|
AbstractStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
Deprecated.
|
AbstractStoreConfigurationBuilder(PersistenceConfigurationBuilder builder,
AttributeSet attributes) |
Modifier and Type | Method and Description |
---|---|
S |
addProperty(String key,
String value)
Defines a single property.
|
AsyncStoreConfigurationBuilder<S> |
async()
Configuration for the async cache store.
|
Configuration |
build() |
ClusteringConfigurationBuilder |
clustering() |
CompatibilityModeConfigurationBuilder |
compatibility() |
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
EncodingConfigurationBuilder |
encoding() |
EvictionConfigurationBuilder |
eviction() |
ExpirationConfigurationBuilder |
expiration() |
S |
fetchPersistentState(boolean b)
If true, fetch persistent state when joining a cluster.
|
protected ConfigurationBuilder |
getBuilder() |
S |
ignoreModifications(boolean b)
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be
applied to the cache store.
|
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
LockingConfigurationBuilder |
locking() |
S |
maxBatchSize(int maxBatchSize)
The maximum size of a batch to be inserted/deleted from the store.
|
MemoryConfigurationBuilder |
memory() |
PersistenceConfigurationBuilder |
persistence() |
S |
preload(boolean b)
If true, when the cache starts, data stored in the cache store will be pre-loaded into memory.
|
S |
properties(Properties properties) |
S |
purgeOnStartup(boolean b)
If true, purges this cache store when it starts up.
|
Builder<?> |
read(T template)
Reads the configuration from an already created configuration bean into this builder.
|
SecurityConfigurationBuilder |
security() |
S |
shared(boolean b)
This setting should be set to true when multiple cache instances share the same cache store
(e.g., multiple nodes in a cluster using a JDBC-based CacheStore pointing to the same, shared
database.) Setting this to true avoids multiple cache instances writing the same modification
multiple times.
|
boolean |
simpleCache() |
ConfigurationChildBuilder |
simpleCache(boolean simpleCache) |
SingletonStoreConfigurationBuilder<S> |
singleton()
SingletonStore is a delegating cache store used for situations when only one instance in a
cluster should interact with the underlying store.
|
SitesConfigurationBuilder |
sites() |
StoreAsBinaryConfigurationBuilder |
storeAsBinary()
Deprecated.
|
ConfigurationChildBuilder |
template(boolean template) |
String |
toString() |
TransactionConfigurationBuilder |
transaction() |
S |
transactional(boolean b)
This setting should be set to true when the underlying cache store supports transactions and it is desirable for
the underlying store and the cache to remain synchronized.
|
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
protected void |
validate(boolean skipClassChecks) |
void |
validate(GlobalConfiguration globalConfig) |
VersioningConfigurationBuilder |
versioning() |
S |
withProperties(Properties props)
Properties passed to the cache store or loader
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, versioning
persistence
protected final AttributeSet attributes
protected final AsyncStoreConfigurationBuilder<S extends AbstractStoreConfigurationBuilder<T,S>> async
protected final SingletonStoreConfigurationBuilder<S extends AbstractStoreConfigurationBuilder<T,S>> singletonStore
@Deprecated protected boolean preload
@Deprecated protected boolean shared
@Deprecated protected boolean ignoreModifications
@Deprecated protected Properties properties
@Deprecated protected boolean purgeOnStartup
@Deprecated protected boolean fetchPersistentState
protected final ConfigurationBuilder builder
@Deprecated public AbstractStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
AbstractStoreConfigurationBuilder(PersistenceConfigurationBuilder, AttributeSet)
insteadpublic AbstractStoreConfigurationBuilder(PersistenceConfigurationBuilder builder, AttributeSet attributes)
public AsyncStoreConfigurationBuilder<S> async()
async
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public SingletonStoreConfigurationBuilder<S> singleton()
singleton
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S fetchPersistentState(boolean b)
fetchPersistentState
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S ignoreModifications(boolean b)
ignoreModifications
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S purgeOnStartup(boolean b)
purgeOnStartup
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S properties(Properties properties)
public S addProperty(String key, String value)
Defines a single property. Can be used multiple times to define all needed properties, but the
full set is overridden by StoreConfigurationChildBuilder.withProperties(java.util.Properties)
.
These properties are passed directly to the cache store.
addProperty
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S withProperties(Properties props)
withProperties
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S preload(boolean b)
preload
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S shared(boolean b)
shared
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S transactional(boolean b)
StoreConfigurationChildBuilder.shared(boolean)
to be set to true.transactional
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public S maxBatchSize(int maxBatchSize)
StoreConfigurationChildBuilder
maxBatchSize
in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>
public void validate()
Builder
validate
in interface Builder<T extends StoreConfiguration>
protected void validate(boolean skipClassChecks)
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public Builder<?> read(T template)
Builder
read
in interface Builder<T extends StoreConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationChildBuilder template(boolean template)
template
in interface ConfigurationChildBuilder
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
simpleCache
in interface ConfigurationChildBuilder
public boolean simpleCache()
simpleCache
in interface ConfigurationChildBuilder
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
@Deprecated public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public CompatibilityModeConfigurationBuilder compatibility()
compatibility
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.