You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jane He (Jira)" <ji...@apache.org> on 2024/11/01 01:24:00 UTC

[jira] [Created] (CASSGO-25) Add default ReconnectionPolicy to doc

Jane He created CASSGO-25:
-----------------------------

             Summary: Add default ReconnectionPolicy to doc
                 Key: CASSGO-25
                 URL: https://issues.apache.org/jira/browse/CASSGO-25
             Project: Apache Cassandra Go driver
          Issue Type: Improvement
          Components: Documentation
            Reporter: Jane He


The current `ClusterConfig` has the following

 
{code:java}
...
	// Default retry policy to use for queries.
	// Default: no retries.
	RetryPolicy RetryPolicy

	// ConvictionPolicy decides whether to mark host as down based on the error and host info.
	// Default: SimpleConvictionPolicy
	ConvictionPolicy ConvictionPolicy

	// Default reconnection policy to use for reconnecting before trying to mark host as down.
	ReconnectionPolicy ReconnectionPolicy
 ...{code}
As all the other `ClusterConfig` properties specify their default value, we should specify default `ReconnectionPolicy` too

 
{code:java}
	// Default reconnection policy to use for reconnecting before trying to mark host as down.
	// Default: ConstantReconnectionPolicy{MaxRetries: 3, Interval: 1 second}
	ReconnectionPolicy ReconnectionPolicy{code}
 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org