protected static class FORWARD_TO_COORD.ForwardHeader extends Header
Modifier and Type | Field and Description |
---|---|
protected static byte |
ACK |
protected long |
id |
protected static byte |
MSG |
protected static byte |
NOT_COORD |
protected byte |
type |
Constructor and Description |
---|
ForwardHeader() |
ForwardHeader(byte type,
long id) |
Modifier and Type | Method and Description |
---|---|
long |
getId() |
byte |
getType() |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
To be implemented by subclasses.
|
java.lang.String |
toString() |
protected static java.lang.String |
typeToString(byte type) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected static final byte MSG
protected static final byte ACK
protected static final byte NOT_COORD
protected byte type
protected long id
public ForwardHeader()
public ForwardHeader(byte type, long id)
public long getId()
public byte getType()
public int size()
Header
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
protected static java.lang.String typeToString(byte type)
Copyright © 1998-2020 Red Hat. All Rights Reserved.