Class ClusteringConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.ClusteringConfiguration
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<ClusteringConfiguration>,BaseConfigurationInfo,ConfigurationInfo
public class ClusteringConfiguration extends Object implements org.infinispan.commons.configuration.attributes.Matchable<ClusteringConfiguration>, ConfigurationInfo
Defines clustered characteristics of the cache.- Author:
- pmuir
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<BiasAcquisition>BIAS_ACQUISITIONstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>BIAS_LIFESPANstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<CacheMode>CACHE_MODEstatic org.infinispan.commons.configuration.elements.ElementDefinitionELEMENT_DEFINITIONstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>INVALIDATION_BATCH_SIZEstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>REMOTE_TIMEOUT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSetattributes()BiasAcquisitionbiasAcquisition()For scattered cache, specifies if the nodes is allowed to cache the entry, serving reads locally.longbiasLifespan()For scattered cache, specifies how long is the node allowed to read the cached entry locally.CacheModecacheMode()Cache mode.StringcacheModeString()booleanequals(Object obj)org.infinispan.commons.configuration.elements.ElementDefinitiongetElementDefinition()HashConfigurationhash()Configure hash sub elementinthashCode()intinvalidationBatchSize()For scattered cache, the threshold after which batched invalidations are sentL1Configurationl1()This method allows configuration of the L1 cache for distributed caches.booleanmatches(ClusteringConfiguration other)PartitionHandlingConfigurationpartitionHandling()Configures cluster's behaviour in the presence of partitions or node failures.longremoteTimeout()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(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.StateTransferConfigurationstateTransfer()List<ConfigurationInfo>subElements()StringtoString()
-
-
-
Field Detail
-
CACHE_MODE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<CacheMode> CACHE_MODE
-
REMOTE_TIMEOUT
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> REMOTE_TIMEOUT
-
INVALIDATION_BATCH_SIZE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> INVALIDATION_BATCH_SIZE
-
BIAS_ACQUISITION
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BiasAcquisition> BIAS_ACQUISITION
-
BIAS_LIFESPAN
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> BIAS_LIFESPAN
-
ELEMENT_DEFINITION
public static final org.infinispan.commons.configuration.elements.ElementDefinition ELEMENT_DEFINITION
-
-
Method Detail
-
cacheMode
public CacheMode cacheMode()
Cache mode. SeeCacheModefor information on the various cache modes available.
-
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.
-
partitionHandling
public PartitionHandlingConfiguration partitionHandling()
Configures cluster's behaviour in the presence of partitions or node failures.
-
cacheModeString
public String cacheModeString()
-
invalidationBatchSize
public int invalidationBatchSize()
For scattered cache, the threshold after which batched invalidations are sent
-
biasAcquisition
public BiasAcquisition biasAcquisition()
For scattered cache, specifies if the nodes is allowed to cache the entry, serving reads locally.
-
biasLifespan
public long biasLifespan()
For scattered cache, specifies how long is the node allowed to read the cached entry locally.
-
hash
public HashConfiguration hash()
Configure hash sub element
-
l1
public L1Configuration 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
public StateTransferConfiguration stateTransfer()
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributesin interfaceBaseConfigurationInfo- Returns:
- the
AttributeSetdeclared by the configuration.
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
subElements
public List<ConfigurationInfo> subElements()
- Specified by:
subElementsin interfaceConfigurationInfo- Returns:
- the list of sub elements.
-
matches
public boolean matches(ClusteringConfiguration other)
-
toString
public String toString()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-