|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.biffle.cliff.pearl.Message
Represents a Pearl protocol message. A message is identified by a type, and contains zero or more payload bytes.
| Constructor Summary | |
Message(int type,
byte[] payload)
Creates a new message of a given type, with an optional payload. |
|
Message(int type,
byte[] payload,
boolean failure)
Creates a new message of a given type, with an optional payload, and a flag indicating whether or not it indicates failure. |
|
| Method Summary | |
boolean |
failure()
Checks whether or not this message indicates failure. |
byte[] |
getPayload()
Returns the message payload. |
int |
getType()
Returns the type of the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Message(int type,
byte[] payload)
public Message(int type,
byte[] payload,
boolean failure)
| Method Detail |
public int getType()
public byte[] getPayload()
public boolean failure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||