Class QueuedUdpPacket

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

public class QueuedUdpPacket extends Object
This class contains information associated with a UDP packet received by the UdpEITransport. 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 Details

    • QueuedUdpPacket

      public QueuedUdpPacket()
      Construct an empty QueuedUdpPacket.
    • QueuedUdpPacket

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

    • getDatagramPacket

      public DatagramPacket getDatagramPacket()
      Retrieve the DatagramPacket contained within this queued object.
      Returns:
      DatagramPacket A DatagramPacket received by the transport
    • setDatagramPacket

      public void setDatagramPacket(DatagramPacket thePacket)
      Store the incoming DatagramPacket in the queued object.
      Parameters:
      thePacket - The DatagramPacket received by the transport
    • getArrivalTime

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

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