Class ClusteringConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.ClusteringConfigurationBuilder
- All Implemented Interfaces:
Builder<ClusteringConfiguration>
,ClusteringConfigurationChildBuilder
,ConfigurationChildBuilder
public class ClusteringConfigurationBuilder
extends Object
implements ClusteringConfigurationChildBuilder, Builder<ClusteringConfiguration>
Defines clustered characteristics of the cache.
- Author:
- pmuir
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbiasAcquisition
(BiasAcquisition biasAcquisition) Used in scattered cache.biasLifespan
(long l, TimeUnit unit) Used in scattered cache.build()
Cache mode.cacheSync
(boolean sync) create()
Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()
protected ConfigurationBuilder
hash()
Configure hash sub elementindexing()
invalidationBatchSize
(int size) For scattered cache, the threshold after which batched invalidations are sentl1()
This method allows configuration of the L1 cache for distributed caches.locking()
memory()
Configures how the cache will react to cluster partitions.query()
read
(ClusteringConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.remoteTimeout
(long l) This is the timeout used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.remoteTimeout
(long l, TimeUnit unit) This is the timeout used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.security()
boolean
simpleCache
(boolean simpleCache) sites()
Configure thestateTransfer
sub element for distributed and replicated caches.template
(boolean template) toString()
unsafe()
void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
-
Field Details
-
builder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<ClusteringConfiguration>
-
cacheMode
Cache mode. SeeCacheMode
for information on the various cache modes available. -
cacheMode
-
cacheType
-
cacheSync
-
remoteTimeout
This is the timeout used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown. -
remoteTimeout
This is the timeout used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown. -
invalidationBatchSize
For scattered cache, the threshold after which batched invalidations are sent -
biasAcquisition
Used in scattered cache. Acquired bias allows reading data on non-owner, but slows down further writes from other nodes. -
biasLifespan
Used in scattered cache. Specifies the duration (in Milliseconds) that acquired bias can be held; while the reads will never be stale, tracking that information consumes memory on the primary owner. -
hash
Configure hash sub element- Specified by:
hash
in interfaceClusteringConfigurationChildBuilder
-
l1
This method allows configuration of the L1 cache for distributed caches. L1 should be explicitly enabled by callingL1ConfigurationBuilder.enable()
- Specified by:
l1
in interfaceClusteringConfigurationChildBuilder
-
stateTransfer
Configure thestateTransfer
sub element for distributed and replicated caches. It doesn't have any effect on LOCAL or INVALIDATION-mode caches.- Specified by:
stateTransfer
in interfaceClusteringConfigurationChildBuilder
-
partitionHandling
Description copied from interface:ClusteringConfigurationChildBuilder
Configures how the cache will react to cluster partitions.- Specified by:
partitionHandling
in interfaceClusteringConfigurationChildBuilder
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<ClusteringConfiguration>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<ClusteringConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<ClusteringConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
toString
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-