Class ClusteringConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.ClusteringConfigurationBuilder
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<ClusteringConfiguration>,ClusteringConfigurationChildBuilder,ConfigurationChildBuilder
public class ClusteringConfigurationBuilder
extends Object
implements ClusteringConfigurationChildBuilder, org.infinispan.commons.configuration.Builder<ClusteringConfiguration>
Defines clustered characteristics of the cache.
- Author:
- pmuir
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetbiasAcquisition(BiasAcquisition biasAcquisition) Used in scattered cache.biasLifespan(long l, TimeUnit unit) Used in scattered cache.build()Cache mode.create()Deprecated.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) 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()voidvalidate(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
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<ClusteringConfiguration>
-
cacheMode
Cache mode. SeeCacheModefor information on the various cache modes available. -
cacheMode
-
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()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<ClusteringConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<ClusteringConfiguration>
-
read
- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<ClusteringConfiguration>
-
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.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
-