public final class PartitionReplica extends Object implements IdentifiedDataSerializable
A PartitionReplica is identical to a Member
which has the same address and uuid.
Existing Member interface could be used instead of introducing
PartitionReplica class but Member has many additional attributes
and functionality which adds complexity to maintenance of partition table.
InternalPartition,
Member| Constructor and Description |
|---|
PartitionReplica() |
PartitionReplica(Address address,
UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
Address |
address() |
boolean |
equals(Object o) |
static PartitionReplica |
from(Member member) |
static PartitionReplica[] |
from(Member[] members) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
hashCode() |
boolean |
isIdentical(Member member) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
UUID |
uuid() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Address address()
public UUID uuid()
public boolean isIdentical(Member member)
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId 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.public static PartitionReplica from(Member member)
public static PartitionReplica[] from(Member[] members)
Copyright © 2019 Hazelcast, Inc.. All rights reserved.