public abstract class AbstractStoreConfigurationChildBuilder<S> extends AbstractPersistenceConfigurationChildBuilder implements StoreConfigurationChildBuilder<S>
Modifier | Constructor and Description |
---|---|
protected |
AbstractStoreConfigurationChildBuilder(StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> builder) |
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() |
CustomInterceptorsConfigurationBuilder |
customInterceptors()
Deprecated.
Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors
|
EncodingConfigurationBuilder |
encoding() |
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() |
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 |
purgeOnStartup(boolean b)
If true, purges this cache store when it starts up.
|
SecurityConfigurationBuilder |
security() |
S |
segmented(boolean b)
If true this store should either be non shared (segmenting can be done automatically for non shared stores) or
the shared store must implement the
SegmentedAdvancedLoadWriteStore interface. |
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) |
SitesConfigurationBuilder |
sites() |
StatisticsConfigurationBuilder |
statistics() |
ConfigurationChildBuilder |
template(boolean template) |
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() |
S |
withProperties(Properties p)
Properties passed to the cache store or loader
|
S |
writeOnly(boolean b)
If true, this cache store will be only used to write entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe, validate
persistence
protected AbstractStoreConfigurationChildBuilder(StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> builder)
public AsyncStoreConfigurationBuilder<S> async()
StoreConfigurationChildBuilder
async
in interface StoreConfigurationChildBuilder<S>
public S fetchPersistentState(boolean b)
StoreConfigurationChildBuilder
fetchPersistentState
in interface StoreConfigurationChildBuilder<S>
public S ignoreModifications(boolean b)
StoreConfigurationChildBuilder
ignoreModifications
in interface StoreConfigurationChildBuilder<S>
public S purgeOnStartup(boolean b)
StoreConfigurationChildBuilder
purgeOnStartup
in interface StoreConfigurationChildBuilder<S>
public S writeOnly(boolean b)
StoreConfigurationChildBuilder
writeOnly
in interface StoreConfigurationChildBuilder<S>
public S preload(boolean b)
StoreConfigurationChildBuilder
preload
in interface StoreConfigurationChildBuilder<S>
public S shared(boolean b)
StoreConfigurationChildBuilder
shared
in interface StoreConfigurationChildBuilder<S>
public S transactional(boolean b)
StoreConfigurationChildBuilder
StoreConfigurationChildBuilder.shared(boolean)
to be set to true.transactional
in interface StoreConfigurationChildBuilder<S>
public S maxBatchSize(int maxBatchSize)
StoreConfigurationChildBuilder
maxBatchSize
in interface StoreConfigurationChildBuilder<S>
public S segmented(boolean b)
StoreConfigurationChildBuilder
SegmentedAdvancedLoadWriteStore
interface.
Segmented stores help performance for things that require viewing the entire contents of the store (eg. iteration,
stream processing, state transfer, mass indexer). If the store doesn't provide constant time operations for methods
such as CacheLoader.loadEntry(Object)
or
CacheWriter.write(MarshallableEntry)
than segmenting this store could also
improve performance of those operations.segmented
in interface StoreConfigurationChildBuilder<S>
b
- whether this store should be segmentedpublic S addProperty(String key, String value)
StoreConfigurationChildBuilder
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>
public S withProperties(Properties p)
StoreConfigurationChildBuilder
withProperties
in interface StoreConfigurationChildBuilder<S>
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
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
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 StatisticsConfigurationBuilder statistics()
statistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.