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 |
---|---|
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
long |
getId() |
short |
getMagicId()
Returns the magic-ID.
|
byte |
getType() |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
String |
toString() |
protected static String |
typeToString(byte type) |
void |
writeTo(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 Supplier<? extends Header> create()
Constructable
public short getMagicId()
Header
getMagicId
in class Header
public long getId()
public byte getType()
public int serializedSize()
SizeStreamable
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
protected static String typeToString(byte type)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.