Package com.nt.udc.ei.transport
Class QueuedUdpPacket
java.lang.Object
com.nt.udc.ei.transport.QueuedUdpPacket
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 Summary
ConstructorsConstructorDescriptionConstruct an empty QueuedUdpPacket.QueuedUdpPacket
(DatagramPacket thePacket, long theTime) Construct a new QueuedUdpPacket. -
Method Summary
Modifier and TypeMethodDescriptionlong
Retrieve the arrival time for the DatagramPacket contained within.Retrieve the DatagramPacket contained within this queued object.void
setArrivalTime
(long theTime) Store the arrival time of the associated DatagramPacket.void
setDatagramPacket
(DatagramPacket thePacket) Store the incoming DatagramPacket in the queued object.
-
Constructor Details
-
QueuedUdpPacket
public QueuedUdpPacket()Construct an empty QueuedUdpPacket. -
QueuedUdpPacket
Construct a new QueuedUdpPacket. This object is used to associate an incoming DatagramPacket with its arrival time.- Parameters:
thePacket
- The DatagramPacket received by the transporttheTime
- The arrival time (in milliseconds) of the packet
-
-
Method Details
-
getDatagramPacket
Retrieve the DatagramPacket contained within this queued object.- Returns:
- DatagramPacket A DatagramPacket received by the transport
-
setDatagramPacket
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
-