Package glide.api.models.configuration
Class AdvancedGlideClusterClientConfiguration
- java.lang.Object
-
- glide.api.models.configuration.AdvancedBaseClientConfiguration
-
- glide.api.models.configuration.AdvancedGlideClusterClientConfiguration
-
public class AdvancedGlideClusterClientConfiguration extends AdvancedBaseClientConfiguration
Represents advanced configuration settings for a ClusterGlideClusterClientused inGlideClusterClientConfiguration.- Example:
AdvancedGlideClusterClientConfiguration config = AdvancedGlideClusterClientConfiguration.builder() .connectionTimeout(500) .tlsAdvancedConfiguration( TlsAdvancedConfiguration.builder().useInsecureTLS(false).build()) .refreshTopologyFromInitialNodes(true) .periodicChecks(PeriodicChecksStatus.DISABLED) // or: .periodicChecks(PeriodicChecksManualInterval.builder().durationInSec(30).build()) .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<C extends AdvancedGlideClusterClientConfiguration,B extends AdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<C,B>>-
Nested classes/interfaces inherited from class glide.api.models.configuration.AdvancedBaseClientConfiguration
AdvancedBaseClientConfiguration.AdvancedBaseClientConfigurationBuilder<C extends AdvancedBaseClientConfiguration,B extends AdvancedBaseClientConfiguration.AdvancedBaseClientConfigurationBuilder<C,B>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdvancedGlideClusterClientConfiguration(AdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<?,?>builder()PeriodicChecksConfiggetPeriodicChecks()Configuration for the periodic topology checks.booleanisRefreshTopologyFromInitialNodes()Enables refreshing the cluster topology using only the initial nodes.java.lang.StringtoString()-
Methods inherited from class glide.api.models.configuration.AdvancedBaseClientConfiguration
getConnectionTimeout, getPubsubReconciliationIntervalMs, getTcpNoDelay, getTlsAdvancedConfiguration
-
-
-
-
Constructor Detail
-
AdvancedGlideClusterClientConfiguration
protected AdvancedGlideClusterClientConfiguration(AdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<?,?> b)
-
-
Method Detail
-
builder
public static AdvancedGlideClusterClientConfiguration.AdvancedGlideClusterClientConfigurationBuilder<?,?> builder()
-
isRefreshTopologyFromInitialNodes
public boolean isRefreshTopologyFromInitialNodes()
Enables refreshing the cluster topology using only the initial nodes.When this option is enabled, all topology updates (both the periodic checks and on-demand refreshes triggered by topology changes) will query only the initial nodes provided when creating the client, rather than using the internal cluster view.
If not set, defaults to
false(uses internal cluster view for topology refresh).
-
getPeriodicChecks
public PeriodicChecksConfig getPeriodicChecks()
Configuration for the periodic topology checks. These checks evaluate changes in the cluster's topology, triggering a slot refresh when detected. Periodic checks ensure a quick and efficient process by querying a limited number of nodes.Can be either a
PeriodicChecksStatusor aPeriodicChecksManualInterval.Defaults to
PeriodicChecksStatus.ENABLED_DEFAULT_CONFIGS.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-