FileDocCategorySizeDatePackage
Message.javaAPI DocAzureus 3.0.3.42235Thu Feb 09 19:43:12 GMT 2006org.gudy.azureus2.plugins.messaging

Message

public interface Message
Basic peer message. A message is uniquely identified by the combination of ID and version.

Fields Summary
public static final int
TYPE_PROTOCOL_PAYLOAD
Is a protocol-bearing message, i.e. messaging/overhead data.
public static final int
TYPE_DATA_PAYLOAD
Is a data-bearing message, i.e. file data.
Constructors Summary
Methods Summary
public Messagecreate(java.nio.ByteBuffer data)
Create a new instance of this message by decoding the given byte serialization.

param
data to deserialize
return
decoded message instance
throws
MessageException if the decoding process fails

public voiddestroy()
Destroy the message; i.e. perform cleanup actions.

public java.lang.StringgetDescription()
Get textual description of this particular message.

return
description

public java.lang.StringgetID()
Get message id.

return
id

public java.nio.ByteBuffer[]getPayload()
Get message payload data.

return
message data buffers

public intgetType()
Get message type.

return
type