public class GridClockMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PACKET_SIZE
Packet size.
|
| Constructor and Description |
|---|
GridClockMessage(UUID origNodeId,
UUID targetNodeId,
long origTs,
long replyTs) |
| Modifier and Type | Method and Description |
|---|---|
static GridClockMessage |
fromBytes(byte[] buf,
int off,
int len)
Constructs message from bytes.
|
UUID |
originatingNodeId() |
void |
originatingNodeId(UUID origNodeId) |
long |
originatingTimestamp() |
void |
originatingTimestamp(long origTs) |
long |
replyTimestamp() |
void |
replyTimestamp(long replyTs) |
UUID |
targetNodeId() |
void |
targetNodeId(UUID targetNodeId) |
byte[] |
toBytes()
Converts message to bytes to send over network.
|
String |
toString() |
public static final int PACKET_SIZE
public UUID originatingNodeId()
public void originatingNodeId(UUID origNodeId)
origNodeId - Originating node ID.public UUID targetNodeId()
public void targetNodeId(UUID targetNodeId)
targetNodeId - Target node ID.public long originatingTimestamp()
public void originatingTimestamp(long origTs)
origTs - Originating timestamp.public long replyTimestamp()
public void replyTimestamp(long replyTs)
replyTs - Reply timestamp.public byte[] toBytes()
public static GridClockMessage fromBytes(byte[] buf, int off, int len) throws IgniteCheckedException
buf - Bytes.off - Offset.len - Packet length.IgniteCheckedException - If message length is invalid.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.1.0-incubating Release Date : May 20 2015