public class RaftGroupMembers extends Object
Constructor and Description |
---|
RaftGroupMembers(long index,
Collection<RaftEndpoint> endpoints,
RaftEndpoint localEndpoint) |
Modifier and Type | Method and Description |
---|---|
long |
index()
Returns the position of the membership change that leads to formation
of this group.
|
boolean |
isKnownMember(RaftEndpoint endpoint)
Returns true if the endpoint is a member of this group, false otherwise.
|
int |
majority()
Returns the majority for this group.
|
int |
memberCount()
Returns the number of members in this group.
|
Collection<RaftEndpoint> |
members()
Return all members in this group.
|
Collection<RaftEndpoint> |
remoteMembers()
Returns remote members in this group, excluding the local member.
|
String |
toString() |
public RaftGroupMembers(long index, Collection<RaftEndpoint> endpoints, RaftEndpoint localEndpoint)
public long index()
public Collection<RaftEndpoint> members()
remoteMembers()
public Collection<RaftEndpoint> remoteMembers()
public int memberCount()
public int majority()
public boolean isKnownMember(RaftEndpoint endpoint)
Copyright © 2019 Hazelcast, Inc.. All rights reserved.