public class UnicastHeader3 extends Header
UNICAST3
into separate class. Used to attach/remove headers (e.g. seqnos) from UNICAST3
.Modifier and Type | Field and Description |
---|---|
static byte |
ACK |
static byte |
CLOSE |
static byte |
DATA |
static byte |
SEND_FIRST_SEQNO |
static byte |
XMIT_REQ |
Modifier | Constructor and Description |
---|---|
|
UnicastHeader3() |
protected |
UnicastHeader3(byte type) |
protected |
UnicastHeader3(byte type,
long seqno) |
protected |
UnicastHeader3(byte type,
long seqno,
short conn_id,
boolean first) |
Modifier and Type | Method and Description |
---|---|
short |
connId() |
UnicastHeader3 |
copy() |
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
static UnicastHeader3 |
createAckHeader(long seqno,
short conn_id,
int timestamp) |
static UnicastHeader3 |
createCloseHeader(short conn_id) |
static UnicastHeader3 |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UnicastHeader3 |
createSendFirstSeqnoHeader(int timestamp) |
static UnicastHeader3 |
createXmitReqHeader() |
boolean |
first() |
short |
getMagicId()
Returns the magic-ID.
|
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
long |
seqno() |
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
int |
timestamp() |
UnicastHeader3 |
timestamp(int ts) |
String |
toString() |
byte |
type() |
static String |
type2Str(byte t) |
void |
writeTo(DataOutput out)
The following types and fields are serialized:
|
public static final byte DATA
public static final byte ACK
public static final byte SEND_FIRST_SEQNO
public static final byte XMIT_REQ
public static final byte CLOSE
public UnicastHeader3()
protected UnicastHeader3(byte type)
protected UnicastHeader3(byte type, long seqno)
protected UnicastHeader3(byte type, long seqno, short conn_id, boolean first)
public short getMagicId()
Header
getMagicId
in class Header
public Supplier<? extends Header> create()
Constructable
public static UnicastHeader3 createDataHeader(long seqno, short conn_id, boolean first)
public static UnicastHeader3 createAckHeader(long seqno, short conn_id, int timestamp)
public static UnicastHeader3 createSendFirstSeqnoHeader(int timestamp)
public static UnicastHeader3 createXmitReqHeader()
public static UnicastHeader3 createCloseHeader(short conn_id)
public byte type()
public long seqno()
public short connId()
public boolean first()
public int timestamp()
public UnicastHeader3 timestamp(int ts)
public static String type2Str(byte t)
public final int serializedSize()
SizeStreamable
public UnicastHeader3 copy()
public void writeTo(DataOutput out) throws Exception
| DATA | seqno | conn_id | first | | ACK | seqno | timestamp | | SEND_FIRST_SEQNO | timestamp | | CLOSE | conn_id |
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.