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 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

      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.
    • remoteTimeout

      public void remoteTimeout(String timeout)
    • partitionHandling

      public PartitionHandlingConfiguration partitionHandling()
      Configures cluster's behaviour in the presence of partitions or node failures.
    • cacheModeString

      public String cacheModeString()
    • 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()
    • matches

      public boolean matches(ClusteringConfiguration other)
      Specified by:
      matches in interface org.infinispan.commons.configuration.attributes.Matchable<ClusteringConfiguration>
      Overrides:
      matches in class org.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
    • update

      public void update(String parentName, ClusteringConfiguration other)
      Specified by:
      update in interface org.infinispan.commons.configuration.attributes.Updatable<ClusteringConfiguration>
      Overrides:
      update in class org.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>
    • validateUpdate

      public void validateUpdate(String parentName, ClusteringConfiguration other)
      Specified by:
      validateUpdate in interface org.infinispan.commons.configuration.attributes.Updatable<ClusteringConfiguration>
      Overrides:
      validateUpdate in class org.infinispan.commons.configuration.attributes.ConfigurationElement<ClusteringConfiguration>