public abstract class AbstractStoreConfigurationChildBuilder<S> extends AbstractPersistenceConfigurationChildBuilder implements StoreConfigurationChildBuilder<S>
Modifier and Type | Field and Description |
---|---|
private StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> |
builder |
Modifier | Constructor and Description |
---|---|
protected |
AbstractStoreConfigurationChildBuilder(StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> builder) |
Modifier and Type | Method and Description |
---|---|
S |
addProperty(java.lang.String key,
java.lang.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 |
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 |
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.
|
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.
|
S |
withProperties(java.util.Properties p)
Properties passed to the cache store or loader
|
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, getBuilder, indexing, invocationBatching, jmxStatistics, locking, persistence, sites, storeAsBinary, transaction, unsafe, versioning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, sites, storeAsBinary, transaction, unsafe, versioning
persistence
private final StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> builder
protected AbstractStoreConfigurationChildBuilder(StoreConfigurationBuilder<? extends AbstractStoreConfiguration,? extends StoreConfigurationBuilder<?,?>> builder)
public AsyncStoreConfigurationBuilder<S> async()
StoreConfigurationChildBuilder
async
in interface StoreConfigurationChildBuilder<S>
public SingletonStoreConfigurationBuilder<S> singleton()
StoreConfigurationChildBuilder
singleton
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 preload(boolean b)
StoreConfigurationChildBuilder
preload
in interface StoreConfigurationChildBuilder<S>
public S shared(boolean b)
StoreConfigurationChildBuilder
shared
in interface StoreConfigurationChildBuilder<S>
public S addProperty(java.lang.String key, java.lang.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(java.util.Properties p)
StoreConfigurationChildBuilder
withProperties
in interface StoreConfigurationChildBuilder<S>