|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasyncudp.ASyncUDPMessageQueue
public class ASyncUDPMessageQueue
The queue of messages to be delivered to remote nodes.
| Method Summary | |
|---|---|
ASyncUDPMessageHandle |
enqueue(Message msg)
Enqueues the Message argument for delivery to the provided
IP address and port. |
boolean |
equals(java.lang.Object obj)
|
AddressPortPair |
getDestination()
Returns the address and port to which this message will be delivered. |
java.util.List<ASyncUDPMessageHandle> |
getEnqueued()
Returns handles to the enqueued messages. |
int |
getLength()
Returns the number of messages enqueued to the destination. |
ASyncUDPMessageHandle |
getSending()
Returns the handle to the message currently being sent. |
int |
hashCode()
|
boolean |
isEmpty()
Returns whether any messages present in this queue. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic AddressPortPair getDestination()
AddressPortPairpublic ASyncUDPMessageHandle enqueue(Message msg)
Message argument for delivery to the provided
IP address and port.
enqueue in interface MessageQueuemsg - the Message to enqueue for delivery
public int getLength()
getLength in interface MessageQueuepublic boolean isEmpty()
true if and only if method getLength
returns 0.
isEmpty in interface MessageQueuetrue if no messages are enqueued,
false otherwisepublic ASyncUDPMessageHandle getSending()
getSending in interface MessageQueuepublic java.util.List<ASyncUDPMessageHandle> getEnqueued()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||