|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object asyncudp.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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public AddressPortPair getDestination()
AddressPortPair
public ASyncUDPMessageHandle enqueue(Message msg)
Message
argument for delivery to the provided
IP address and port.
enqueue
in interface MessageQueue
msg
- the Message
to enqueue for delivery
public int getLength()
getLength
in interface MessageQueue
public boolean isEmpty()
true
if and only if method getLength
returns 0
.
isEmpty
in interface MessageQueue
true
if no messages are enqueued,
false
otherwisepublic ASyncUDPMessageHandle getSending()
getSending
in interface MessageQueue
public java.util.List<ASyncUDPMessageHandle> getEnqueued()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |