public static class UNICAST3.Header extends Header
| DATA | seqno | conn_id | first | | ACK | seqno | timestamp | | SEND_FIRST_SEQNO | timestamp | | CLOSE | conn_id |
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 |
---|---|
|
Header() |
protected |
Header(byte type) |
protected |
Header(byte type,
long seqno) |
protected |
Header(byte type,
long seqno,
short conn_id,
boolean first) |
Modifier and Type | Method and Description |
---|---|
short |
connId() |
UNICAST3.Header |
copy() |
java.util.function.Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
static UNICAST3.Header |
createAckHeader(long seqno,
short conn_id,
long timestamp) |
static UNICAST3.Header |
createCloseHeader(short conn_id) |
static UNICAST3.Header |
createDataHeader(long seqno,
short conn_id,
boolean first) |
static UNICAST3.Header |
createSendFirstSeqnoHeader(long timestamp) |
static UNICAST3.Header |
createXmitReqHeader() |
boolean |
first() |
short |
getMagicId()
Returns the magic-ID.
|
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
|
long |
seqno() |
int |
size()
To be implemented by subclasses.
|
long |
timestamp() |
UNICAST3.Header |
timestamp(long ts) |
java.lang.String |
toString() |
byte |
type() |
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 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 Header()
protected Header(byte type)
protected Header(byte type, long seqno)
protected Header(byte type, long seqno, short conn_id, boolean first)
public short getMagicId()
Header
getMagicId
in class Header
public java.util.function.Supplier<? extends Header> create()
Constructable
public static UNICAST3.Header createDataHeader(long seqno, short conn_id, boolean first)
public static UNICAST3.Header createAckHeader(long seqno, short conn_id, long timestamp)
public static UNICAST3.Header createSendFirstSeqnoHeader(long timestamp)
public static UNICAST3.Header createXmitReqHeader()
public static UNICAST3.Header createCloseHeader(short conn_id)
public byte type()
public long seqno()
public short connId()
public boolean first()
public long timestamp()
public UNICAST3.Header timestamp(long ts)
public static java.lang.String type2Str(byte t)
public final int size()
Header
public UNICAST3.Header copy()
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
Copyright © 1998-2020 Red Hat. All Rights Reserved.