Skip to content

Commit a85074c

Browse files
committed
Improve NodeState javadocs
1 parent ce99768 commit a85074c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • core/src/main/java/com/datastax/oss/driver/api/core/metadata

core/src/main/java/com/datastax/oss/driver/api/core/metadata/NodeState.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
package com.datastax.oss.driver.api.core.metadata;
1717

1818
import 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. */
2123
public 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
}

0 commit comments

Comments
 (0)