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
Fields -
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 ConfigurationBuilderhash()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()booleansimpleCache(boolean simpleCache) sites()Configure thestateTransfersub element for distributed and replicated caches.template(boolean template) toString()unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
attributesin interfaceBuilder<ClusteringConfiguration>
-
cacheMode
Cache mode. SeeCacheModefor 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:
hashin interfaceClusteringConfigurationChildBuilder
-
l1
This method allows configuration of the L1 cache for distributed caches. L1 should be explicitly enabled by callingL1ConfigurationBuilder.enable()- Specified by:
l1in interfaceClusteringConfigurationChildBuilder
-
stateTransfer
Configure thestateTransfersub element for distributed and replicated caches. It doesn't have any effect on LOCAL or INVALIDATION-mode caches.- Specified by:
stateTransferin interfaceClusteringConfigurationChildBuilder
-
partitionHandling
Description copied from interface:ClusteringConfigurationChildBuilderConfigures how the cache will react to cluster partitions.- Specified by:
partitionHandlingin interfaceClusteringConfigurationChildBuilder
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<ClusteringConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<ClusteringConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin 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:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin 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:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-