public class NakAckHeader2 extends Header
NAKACK2
Modifier and Type | Field and Description |
---|---|
static byte |
HIGHEST_SEQNO |
static byte |
MSG |
static byte |
XMIT_REQ |
static byte |
XMIT_RSP |
Constructor and Description |
---|
NakAckHeader2() |
Modifier and Type | Method and Description |
---|---|
NakAckHeader2 |
copy() |
static NakAckHeader2 |
createHighestSeqnoHeader(long seqno) |
static NakAckHeader2 |
createMessageHeader(long seqno) |
static NakAckHeader2 |
createXmitRequestHeader(Address orginal_sender) |
static NakAckHeader2 |
createXmitResponseHeader() |
Address |
getSender() |
long |
getSeqno() |
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() |
static java.lang.String |
type2Str(byte t) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte MSG
public static final byte XMIT_REQ
public static final byte XMIT_RSP
public static final byte HIGHEST_SEQNO
public static NakAckHeader2 createMessageHeader(long seqno)
public static NakAckHeader2 createXmitRequestHeader(Address orginal_sender)
public static NakAckHeader2 createXmitResponseHeader()
public static NakAckHeader2 createHighestSeqnoHeader(long seqno)
public byte getType()
public long getSeqno()
public Address getSender()
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
public int size()
Header
public NakAckHeader2 copy()
public static java.lang.String type2Str(byte t)
Copyright © 1998-2020 Red Hat. All Rights Reserved.