Class RawMessageAdapter
java.lang.Object
com.biglybt.pifimpl.local.messaging.MessageAdapter
com.biglybt.pifimpl.local.network.RawMessageAdapter
- All Implemented Interfaces:
RawMessage, Message, Message, RawMessage
-
Field Summary
FieldsFields inherited from interface Message
TYPE_DATA_PAYLOAD, TYPE_PROTOCOL_PAYLOADFields inherited from interface Message
TYPE_DATA_PAYLOAD, TYPE_PROTOCOL_PAYLOADFields inherited from interface RawMessage
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL -
Constructor Summary
ConstructorsConstructorDescriptionRawMessageAdapter(RawMessage core_msg) RawMessageAdapter(RawMessage plug_msg) -
Method Summary
Modifier and TypeMethodDescriptionGet the message this raw message is based upon.Get the message this raw message is based upon.intGet the message's queue priority.Get the message's raw data payload.Get the raw data payload for this message.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 class MessageAdapter
create, deserialize, destroy, getCoreMessage, getData, getDescription, getFeatureID, getFeatureSubID, getID, getIDBytes, getPayload, getPluginMessage, getType, getVersionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Message
deserialize, destroy, getData, getDescription, getFeatureID, getFeatureSubID, getID, getIDBytes, getType, getVersionMethods inherited from interface Message
create, destroy, getDescription, getID, getPayload, getType
-
Field Details
-
plug_msg
-
core_msg
-
-
Constructor Details
-
RawMessageAdapter
-
RawMessageAdapter
-
-
Method Details
-
getRawPayload
Description copied from interface:RawMessageGet the raw data payload for this message.- Specified by:
getRawPayloadin interfaceRawMessage- Returns:
- raw payload
-
getRawData
Description copied from interface:RawMessageGet the message's raw data payload.- Specified by:
getRawDatain interfaceRawMessage- Returns:
- data payload buffers
-
getPriority
public int getPriority()Description copied from interface:RawMessageGet the message's queue priority.- Specified by:
getPriorityin interfaceRawMessage- Returns:
- priority
-
isNoDelay
public boolean isNoDelay()Description copied from interface:RawMessageIs this a no-delay message. No-delay messages are transmitted immediately, i.e. force-flushed out the transport.- Specified by:
isNoDelayin interfaceRawMessage- Returns:
- true if a no-delay message
-
setNoDelay
public void setNoDelay()Description copied from interface:RawMessageSet no-delay for this message- Specified by:
setNoDelayin interfaceRawMessage
-
messagesToRemove
Description copied from interface:RawMessageGet the yet-unsent message types that should be removed before queueing this message for sending.- Specified by:
messagesToRemovein interfaceRawMessage- Returns:
- message types; null if no types
-
getOriginalMessage
Description copied from interface:RawMessageGet the message this raw message is based upon.- Specified by:
getOriginalMessagein interfaceRawMessage- Returns:
- original message
-
getBaseMessage
Description copied from interface:RawMessageGet the message this raw message is based upon.- Specified by:
getBaseMessagein interfaceRawMessage- Returns:
- original message
-