public class Cluster extends Object
| Constructor and Description |
|---|
Cluster(Endpoint... endpoints)
Constructs a Cluster with variable endpoints.
|
Cluster(Set<Endpoint> endpoints)
Constructs a Cluster with a set of endpoints.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Checks equality: two clusters are equal if they contain exactly the same endpoints (order-agnostic).
|
Set<Endpoint> |
getEndpoints()
Gets all nodes in the cluster (unmodifiable).
|
int |
hashCode()
Generates hash code based on the endpoint set.
|
String |
toString() |
public Cluster(Endpoint... endpoints)
endpoints - the nodes that form the clusterpublic Set<Endpoint> getEndpoints()
public boolean equals(Object o)
public int hashCode()
Copyright © 2025. All rights reserved.