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,
DiscoveryEvent discoEvt,
AffinityTopologyVersion topVer) |
GridDhtPartitionExchangeId(UUID nodeId,
int evt,
AffinityTopologyVersion topVer) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionExchangeId o) |
short |
directType()
Gets message type.
|
String |
discoveryEventName() |
boolean |
equals(Object o) |
int |
event() |
ClusterNode |
eventNode() |
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, AffinityTopologyVersion topVer)
nodeId - Node ID.evt - Event type.topVer - Topology version.public GridDhtPartitionExchangeId(UUID nodeId, DiscoveryEvent discoEvt, AffinityTopologyVersion topVer)
nodeId - Node ID.discoEvt - Event.topVer - Topology version.public GridDhtPartitionExchangeId()
Externalizable.public UUID nodeId()
public int event()
public ClusterNode eventNode()
public String discoveryEventName()
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 Messagepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic 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 Messagepublic byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021