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

    Fields
    Modifier and Type
    Field
    Description
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BiasAcquisition>
     
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>
     
    static 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<Integer>
     
    static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>
     

    Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement

    attributes, CHILDLESS, children, element, repeated
  • Method Summary

    Modifier and Type
    Method
    Description
    For scattered cache, specifies if the nodes is allowed to cache the entry, serving reads locally.
    long
    For scattered cache, specifies how long is the node allowed to read the cached entry locally.
    Cache mode.
     
    Configure hash sub element
    int
    For scattered cache, the threshold after which batched invalidations are sent
    l1()
    This method allows configuration of the L1 cache for distributed caches.
    Configures cluster's behaviour in the presence of partitions or node failures.
    long
    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.
    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.
     

    Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement

    attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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<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
  • Method Details

    • cacheMode

      public CacheMode cacheMode()
      Cache mode. See CacheMode for 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 call L1ConfigurationBuilder.disable()
    • stateTransfer

      public StateTransferConfiguration stateTransfer()