public class SingletonStoreConfigurationBuilder<S> extends AbstractStoreConfigurationChildBuilder<S> implements Builder<SingletonStoreConfiguration>
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private long |
pushStateTimeout |
private boolean |
pushStateWhenCoordinator |
Constructor and Description |
---|
SingletonStoreConfigurationBuilder(AbstractStoreConfigurationBuilder<? extends AbstractStoreConfiguration,?> builder) |
Modifier and Type | Method and Description |
---|---|
SingletonStoreConfiguration |
create()
Create the configuration bean
|
SingletonStoreConfigurationBuilder<S> |
disable()
Enable the singleton store cache store
|
SingletonStoreConfigurationBuilder<S> |
enable()
Enable the singleton store cache store
|
SingletonStoreConfigurationBuilder<S> |
enabled(boolean enabled)
If true, the singleton store cache store is enabled.
|
SingletonStoreConfigurationBuilder<S> |
pushStateTimeout(long l)
If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds
that the process of pushing the in-memory state to the underlying cache loader should take.
|
SingletonStoreConfigurationBuilder<S> |
pushStateTimeout(long l,
java.util.concurrent.TimeUnit unit)
If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds
that the process of pushing the in-memory state to the underlying cache loader should take.
|
SingletonStoreConfigurationBuilder<S> |
pushStateWhenCoordinator(boolean b)
If true, when a node becomes the coordinator, it will transfer in-memory state to the
underlying cache store.
|
SingletonStoreConfigurationBuilder<S> |
read(SingletonStoreConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
java.lang.String |
toString() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
addProperty, async, fetchPersistentState, ignoreModifications, preload, purgeOnStartup, shared, singleton, withProperties
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, getBuilder, indexing, invocationBatching, jmxStatistics, locking, persistence, security, sites, storeAsBinary, transaction, unsafe, versioning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, security, sites, storeAsBinary, transaction, unsafe, versioning
persistence
private boolean enabled
private long pushStateTimeout
private boolean pushStateWhenCoordinator
SingletonStoreConfigurationBuilder(AbstractStoreConfigurationBuilder<? extends AbstractStoreConfiguration,?> builder)
public SingletonStoreConfigurationBuilder<S> enable()
public SingletonStoreConfigurationBuilder<S> enabled(boolean enabled)
public SingletonStoreConfigurationBuilder<S> disable()
public SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l)
public SingletonStoreConfigurationBuilder<S> pushStateTimeout(long l, java.util.concurrent.TimeUnit unit)
public SingletonStoreConfigurationBuilder<S> pushStateWhenCoordinator(boolean b)
public void validate()
Builder
validate
in interface Builder<SingletonStoreConfiguration>
public SingletonStoreConfiguration create()
Builder
create
in interface Builder<SingletonStoreConfiguration>
public SingletonStoreConfigurationBuilder<S> read(SingletonStoreConfiguration template)
Builder
read
in interface Builder<SingletonStoreConfiguration>
template
- the configuration from which to "clone" this config if needed.public java.lang.String toString()
toString
in class java.lang.Object