public class ClusterView
extends java.lang.Object
viewId, we have seen N members at the cluster.
If any node(s) leave or new one(s) added, new ClusterView is
registered in the cluster and shared among all nodes.
This class is immutable.| Modifier and Type | Field and Description |
|---|---|
static ClusterView |
EMPTY_VIEW |
| Constructor and Description |
|---|
ClusterView(long viewId,
java.util.List<Address> members) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.util.List<Address> |
members() |
java.lang.String |
toString() |
long |
viewId() |
public static final ClusterView EMPTY_VIEW
public ClusterView(long viewId,
java.util.List<Address> members)
public long viewId()
public java.util.List<Address> members()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 Artem Dmitriev. All Rights Reserved.