|
|||||||||
| 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. |
private MacAddress |
nextHop
Next hop that message should traverse. |
private Message |
payload
Queued message payload. |
| 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 |
|---|
private Message payload
private MacAddress nextHop
public QueuedMessage next
| Constructor Detail |
|---|
public QueuedMessage(Message payload,
MacAddress nextHop)
payload - actual message being queuednextHop - nextHop of message| Method Detail |
|---|
public Message getPayload()
public MacAddress getNextHop()
public int getSize()
getSize in interface Message
public void getBytes(byte[] msg,
int offset)
getBytes in interface Messagemsg - destination byte arrayoffset - byte array starting offset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||