Skip to content

Commit 0ba3272

Browse files
committed
Improve NodeDistance javadoc
1 parent 629a0a0 commit 0ba3272

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

core/src/main/java/com/datastax/oss/driver/internal/core/metadata/DistanceEvent.java

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

1818
import com.datastax.oss.driver.api.core.loadbalancing.NodeDistance;
19+
import com.datastax.oss.driver.api.core.metadata.Node;
1920
import java.util.Objects;
2021

21-
/** Fired when the load balancing policy assigns a new distance to a host. */
22+
/**
23+
* Indicates that the load balancing policy has assigned a new distance to a host.
24+
*
25+
* <p>This is informational only: firing this event manually does <b>not</b> change the distance.
26+
* For that, see {@link LoadBalancingPolicyWrapper#setDistance(Node, NodeDistance)}.
27+
*/
2228
public class DistanceEvent {
2329
public final NodeDistance distance;
2430
public final DefaultNode node;

0 commit comments

Comments
 (0)