public final class MembersView extends Object implements IdentifiedDataSerializable, Versioned
| Constructor and Description |
|---|
MembersView() |
MembersView(int version,
List<MemberInfo> members) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAddress(Address address) |
boolean |
containsMember(Address address,
String uuid) |
static MembersView |
createNew(int version,
Collection<MemberImpl> members)
Creates a new
MemberMap including given members. |
Set<Address> |
getAddresses() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
MemberInfo |
getMember(Address address) |
List<MemberInfo> |
getMembers() |
int |
getVersion() |
boolean |
isLaterThan(MembersView other) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
int |
size() |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public MembersView()
public MembersView(int version,
List<MemberInfo> members)
public static MembersView createNew(int version, Collection<MemberImpl> members)
MemberMap including given members.version - versionmembers - membersMemberMappublic List<MemberInfo> getMembers()
public int size()
public int getVersion()
public boolean containsAddress(Address address)
public MemberInfo getMember(Address address)
public boolean isLaterThan(MembersView other)
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.