public class GridDhtPartitionExchangeId extends MessageAdapter implements Comparable<GridDhtPartitionExchangeId>, Externalizable
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
GridDhtPartitionExchangeId()
Empty constructor required by
Externalizable. |
GridDhtPartitionExchangeId(UUID nodeId,
int evt,
long topVer) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GridDhtPartitionExchangeId o) |
byte |
directType()
Gets message type.
|
boolean |
equals(Object o) |
int |
event() |
int |
hashCode() |
boolean |
isJoined() |
boolean |
isLeft() |
UUID |
nodeId() |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
long |
topologyVersion() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
setReader, skipRecoverypublic GridDhtPartitionExchangeId(UUID nodeId, int evt, long topVer)
nodeId - Node ID.evt - Event.topVer - Topology version.public GridDhtPartitionExchangeId()
Externalizable.public UUID nodeId()
public int event()
public long topologyVersion()
public boolean isJoined()
True if exchange is for new node joining.public boolean isLeft()
True if exchange is for node leaving.public 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)
writeTo in class MessageAdapterbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class MessageAdapterbuf - Byte buffer.public byte directType()
directType in class MessageAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015