File tree Expand file tree Collapse file tree
core/src/main/java/com/datastax/oss/driver/api/core/metadata Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616package com .datastax .oss .driver .api .core .metadata ;
1717
1818import com .datastax .oss .driver .api .core .loadbalancing .LoadBalancingPolicy ;
19+ import com .datastax .oss .driver .internal .core .metadata .TopologyEvent ;
20+ import java .net .InetSocketAddress ;
1921
2022/** The state of a node, as viewed from the driver. */
2123public enum NodeState {
@@ -55,7 +57,10 @@ public enum NodeState {
5557 *
5658 * <p>This is used for edge error cases, for example when the driver detects that it's trying to
5759 * connect to a node that does not belong to the Cassandra cluster (e.g. a wrong address was
58- * provided in the contact points).
60+ * provided in the contact points). It can also be {@link
61+ * TopologyEvent#forceDown(InetSocketAddress) triggered explicitly} by components (for example a
62+ * custom load balancing policy) that want to limit the number of nodes that the driver connects
63+ * to.
5964 */
6065 FORCED_DOWN ,
6166}
You can’t perform that action at this time.
0 commit comments