|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.net.QueuedMessage
public class QueuedMessage
A message object that can be queued in MessageQueue
.
Field Summary | |
---|---|
QueuedMessage |
next
Pointer to next queued message. |
Fields inherited from interface jist.swans.misc.Message |
---|
NULL |
Constructor Summary | |
---|---|
QueuedMessage(Message payload,
MacAddress nextHop)
Create new queued message. |
Method Summary | |
---|---|
void |
getBytes(byte[] msg,
int offset)
Store packet into byte array. |
MacAddress |
getNextHop()
Return next link hop. |
Message |
getPayload()
Return payload. |
int |
getSize()
Return packet size or Constants.ZERO_WIRE_SIZE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public QueuedMessage next
Constructor Detail |
---|
public QueuedMessage(Message payload, MacAddress nextHop)
payload
- actual message being queuednextHop
- nextHop of messageMethod Detail |
---|
public Message getPayload()
public MacAddress getNextHop()
public int getSize()
getSize
in interface Message
public void getBytes(byte[] msg, int offset)
getBytes
in interface Message
msg
- destination byte arrayoffset
- byte array starting offset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |