|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lwes.listener.DatagramQueueElement
public class DatagramQueueElement
Element objects to use in the threaded queueing system. This encapsulates datagrams and timestamps.
| Constructor Summary | |
|---|---|
DatagramQueueElement()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Resets this packet to null |
boolean |
equals(DatagramQueueElement element)
Determine equality with another DatagramQueueElement |
boolean |
equals(java.lang.Object object)
Determine equality with an object |
java.net.DatagramPacket |
getPacket()
Gets the datagram packet payload. |
long |
getTimestamp()
Gets the timestamp associated with this packet |
void |
setPacket(java.net.DatagramPacket packet)
Sets the datagram packet payload |
void |
setTimestamp(long timestamp)
Sets the timestamp associated with this packet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatagramQueueElement()
| Method Detail |
|---|
public java.net.DatagramPacket getPacket()
public void setPacket(java.net.DatagramPacket packet)
packet - the DatagramPacketpublic long getTimestamp()
getTimestamp in interface QueueElementpublic void setTimestamp(long timestamp)
setTimestamp in interface QueueElementtimestamp - the timestamppublic void clear()
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - the object to compare with
public boolean equals(DatagramQueueElement element)
element - the object to compare with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||