Package com.biglybt.core.networkmanager
Interface RawMessage
- All Superinterfaces:
Message
- All Known Implementing Classes:
BTHandshake,BTKeepAlive,BTRawMessage,RawMessageAdapter,RawMessageImpl
A raw data message designed for advanced queueing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from interface com.biglybt.core.peermanager.messaging.Message
TYPE_DATA_PAYLOAD, TYPE_PROTOCOL_PAYLOAD -
Method Summary
Modifier and TypeMethodDescriptionGet the message this raw message is based upon.intGet the message's queue priority.Get the message's raw data payload.booleanIs this a no-delay message.Message[]Get the yet-unsent message types that should be removed before queueing this message for sending.voidSet no-delay for this messageMethods inherited from interface com.biglybt.core.peermanager.messaging.Message
deserialize, destroy, getData, getDescription, getFeatureID, getFeatureSubID, getID, getIDBytes, getType, getVersion
-
Field Details
-
PRIORITY_LOW
static final int PRIORITY_LOW- See Also:
-
PRIORITY_NORMAL
static final int PRIORITY_NORMAL- See Also:
-
PRIORITY_HIGH
static final int PRIORITY_HIGH- See Also:
-
-
Method Details
-
getRawData
DirectByteBuffer[] getRawData()Get the message's raw data payload.- Returns:
- data payload buffers
-
getPriority
int getPriority()Get the message's queue priority.- Returns:
- priority
-
isNoDelay
boolean isNoDelay()Is this a no-delay message. No-delay messages are transmitted immediately, i.e. force-flushed out the transport.- Returns:
- true if a no-delay message
-
setNoDelay
void setNoDelay()Set no-delay for this message- Parameters:
no_delay-
-
messagesToRemove
Message[] messagesToRemove()Get the yet-unsent message types that should be removed before queueing this message for sending.- Returns:
- message types; null if no types
-
getBaseMessage
Message getBaseMessage()Get the message this raw message is based upon.- Returns:
- original message
-