Class QueuedTcpPacket

java.lang.Object
com.nt.udc.ei.transport.QueuedTcpPacket

public class QueuedTcpPacket extends Object
This class contains information associated with bytes received by the TcpEITransport. This object will be stored in the transport's queue until needed by the transport's DataReceiver. At that time, the object will be supplied to the DCRecordFactory associated with the transport where the data contained within will be used to generate DCFieldContainers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an empty QueuedTcpPacket.
    QueuedTcpPacket(byte[] theBytes, long theTime)
    Construct a new QueuedTcpPacket.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Retrieve the arrival time for the byte array contained within.
    byte[]
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QueuedTcpPacket

      public QueuedTcpPacket()
      Construct an empty QueuedTcpPacket.
    • QueuedTcpPacket

      public QueuedTcpPacket(byte[] theBytes, long theTime)
      Construct a new QueuedTcpPacket. This object is used to associate an incoming DatagramPacket with its arrival time.
      Parameters:
      theBytes - The array of bytes received by the transport
      theTime - The arrival time (in milliseconds) of the packet
  • Method Details

    • getBytes

      public byte[] getBytes()
      Retrieve the byte array contained within this queued object.
      Returns:
      byte[] A byte array received by the transport
    • setBytes

      public void setBytes(byte[] theBytes)
      Store the incoming array of bytes in the queued object.
      Parameters:
      theBytes - The array of bytes received by the transport
    • getArrivalTime

      public long getArrivalTime()
      Retrieve the arrival time for the byte array contained within.
      Returns:
      long The arrival time of the associated byte array
    • setArrivalTime

      public void setArrivalTime(long theTime)
      Store the arrival time of the associated byte array.
      Parameters:
      theTime - The arrival time of the associated byte array