public interface StoreConfigurationChildBuilder<S> extends ConfigurationChildBuilder
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.
|
S |
fetchPersistentState(boolean b)
If true, fetch persistent state when joining a cluster.
|
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.
|
S |
maxBatchSize(int maxBatchSize)
The maximum size of a batch to be inserted/deleted from the store.
|
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.
|
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.
|
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.
|
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.
|
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe, validate
AsyncStoreConfigurationBuilder<S> async()
S fetchPersistentState(boolean b)
S ignoreModifications(boolean b)
S purgeOnStartup(boolean b)
S writeOnly(boolean b)
S preload(boolean b)
S shared(boolean b)
S transactional(boolean b)
shared(boolean)
to be set to true.S maxBatchSize(int maxBatchSize)
S segmented(boolean b)
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.b
- whether this store should be segmentedS 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 withProperties(java.util.Properties)
.
These properties are passed directly to the cache store.
S withProperties(Properties p)
Copyright © 2021 JBoss by Red Hat. All rights reserved.