public class QueuedTcpPacket
extends java.lang.Object
Constructor and Description |
---|
QueuedTcpPacket()
Construct an empty QueuedTcpPacket.
|
QueuedTcpPacket(byte[] theBytes,
long theTime)
Construct a new QueuedTcpPacket.
|
Modifier and Type | Method and Description |
---|---|
long |
getArrivalTime()
Retrieve the arrival time for the byte array contained within.
|
byte[] |
getBytes()
Retrieve the byte array contained within this queued object.
|
void |
setArrivalTime(long theTime)
Store the arrival time of the associated byte array.
|
void |
setBytes(byte[] theBytes)
Store the incoming array of bytes in the queued object.
|
public QueuedTcpPacket()
public QueuedTcpPacket(byte[] theBytes, long theTime)
theBytes
- The array of bytes received by the transporttheTime
- The arrival time (in milliseconds) of the packetpublic byte[] getBytes()
public void setBytes(byte[] theBytes)
theBytes
- The array of bytes received by the transportpublic long getArrivalTime()
public void setArrivalTime(long theTime)
theTime
- The arrival time of the associated byte array