Class ClusteringConfiguration

    • Method Detail

      • 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 java.lang.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.
      • 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()
      • sync

        @Deprecated
        public SyncConfiguration sync()
        Deprecated.
        Since 9.0, the replTimeout attribute is now in ClusteringConfiguration.
        Configure sync sub element. Once this method is invoked users cannot subsequently invoke async() as two are mutually exclusive
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object