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
- membersMemberMap
public 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()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.