| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Message
Basic peer message. A message is uniquely identified by the combination of ID and version.
| Field Summary | |
|---|---|
static int | 
TYPE_DATA_PAYLOAD
Is a data-bearing message, i.e.  | 
static int | 
TYPE_PROTOCOL_PAYLOAD
Is a protocol-bearing message, i.e.  | 
| Method Summary | |
|---|---|
 Message | 
create(ByteBuffer data)
Create a new instance of this message by decoding the given byte serialization.  | 
 void | 
destroy()
Destroy the message; i.e.  | 
 String | 
getDescription()
Get textual description of this particular message.  | 
 String | 
getID()
Get message id.  | 
 ByteBuffer[] | 
getPayload()
Get message payload data.  | 
 int | 
getType()
Get message type.  | 
| Field Detail | 
|---|
static final int TYPE_PROTOCOL_PAYLOAD
static final int TYPE_DATA_PAYLOAD
| Method Detail | 
|---|
String getID()
int getType()
String getDescription()
ByteBuffer[] getPayload()
Message create(ByteBuffer data)
               throws MessageException
data - to deserialize
MessageException - if the decoding process failsvoid destroy()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||