public class GridDhtPartitionExchangeId extends Object implements Message, Comparable<GridDhtPartitionExchangeId>, Externalizable
DIRECT_TYPE_SIZE
Constructor and Description |
---|
GridDhtPartitionExchangeId()
Empty constructor required by
Externalizable . |
GridDhtPartitionExchangeId(UUID nodeId,
int evt,
AffinityTopologyVersion topVer) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GridDhtPartitionExchangeId o) |
short |
directType()
Gets message type.
|
boolean |
equals(Object o) |
int |
event() |
byte |
fieldsCount()
Gets fields count.
|
int |
hashCode() |
boolean |
isJoined() |
boolean |
isLeft() |
UUID |
nodeId() |
void |
onAckReceived()
Method called when ack message received.
|
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
AffinityTopologyVersion |
topologyVersion() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public GridDhtPartitionExchangeId(UUID nodeId, int evt, @NotNull AffinityTopologyVersion topVer)
nodeId
- Node ID.evt
- Event.topVer
- Topology version.public GridDhtPartitionExchangeId()
Externalizable
.public UUID nodeId()
public int event()
public AffinityTopologyVersion topologyVersion()
public boolean isJoined()
True
if exchange is for new node joining.public boolean isLeft()
True
if exchange is for node leaving.public void onAckReceived()
onAckReceived
in interface Message
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public int compareTo(GridDhtPartitionExchangeId o)
compareTo
in interface Comparable<GridDhtPartitionExchangeId>
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short directType()
directType
in interface Message
public byte fieldsCount()
fieldsCount
in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017