Class ClusteringConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
org.infinispan.configuration.cache.ClusteringConfiguration
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<ClusteringConfiguration>, org.infinispan.commons.configuration.attributes.Updatable<ClusteringConfiguration>
public class ClusteringConfiguration
extends org.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
Defines clustered characteristics of the cache.
- Author:
- pmuir
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<CacheType> static final org.infinispan.commons.configuration.attributes.AttributeDefinition<org.infinispan.commons.util.TimeQuantity> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated -
Method Summary
Modifier and TypeMethodDescriptionCache mode.hash()Configure hash sub elementl1()This method allows configuration of the L1 cache for distributed caches.booleanmatches(ClusteringConfiguration other) Configures cluster's behaviour in the presence of partitions or node failures.longThis 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.voidremoteTimeout(long timeoutMillis) 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.voidremoteTimeout(String timeout) voidupdate(String parentName, ClusteringConfiguration other) voidvalidateUpdate(String parentName, ClusteringConfiguration other) Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, extractAttributes, findAttribute, hashCode, isModified, list, matches, matches, toString, update, update, validateUpdate, validateUpdate, write
-
Field Details
-
CACHE_TYPE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<CacheType> CACHE_TYPE -
CACHE_SYNC
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> CACHE_SYNC -
REMOTE_TIMEOUT
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<org.infinispan.commons.util.TimeQuantity> REMOTE_TIMEOUT
-
-
Method Details
-
cacheMode
-
remoteTimeout
public long 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
public void remoteTimeout(long timeoutMillis) 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
-
partitionHandling
Configures cluster's behaviour in the presence of partitions or node failures. -
cacheModeString
-
hash
Configure hash sub element -
l1
This method allows configuration of the L1 cache for distributed caches. When this method is called, it automatically enables L1. So, if you want it to be disabled, make sure you callL1ConfigurationBuilder.disable() -
stateTransfer
-
matches
- Specified by:
matchesin interfaceorg.infinispan.commons.configuration.attributes.Matchable<ClusteringConfiguration>- Overrides:
matchesin classorg.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
-
update
- Specified by:
updatein interfaceorg.infinispan.commons.configuration.attributes.Updatable<ClusteringConfiguration>- Overrides:
updatein classorg.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
-
validateUpdate
- Specified by:
validateUpdatein interfaceorg.infinispan.commons.configuration.attributes.Updatable<ClusteringConfiguration>- Overrides:
validateUpdatein classorg.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
-