FileDocCategorySizeDatePackage
Message.javaAPI DocAzureus 3.0.3.42674Sun Mar 04 21:08:16 GMT 2007com.aelitis.azureus.core.peermanager.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 Messagedeserialize(org.gudy.azureus2.core3.util.DirectByteBuffer data, byte version)
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 NOTE: Does not auto-return given direct buffer on thrown exception.

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

public org.gudy.azureus2.core3.util.DirectByteBuffer[]getData()
Get message payload data.

return
message data buffers

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

return
description

public java.lang.StringgetFeatureID()
Get the main feature set name this message belongs to.

return
feature id

public intgetFeatureSubID()
Get the static message sub-id for the feature.

return
sub id

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

return
id

public byte[]getIDBytes()

public intgetType()
Get message type.

return
type

public bytegetVersion()