Class RawMessageAdapter

java.lang.Object
com.biglybt.pifimpl.local.messaging.MessageAdapter
com.biglybt.pifimpl.local.network.RawMessageAdapter
All Implemented Interfaces:
RawMessage, Message, Message, RawMessage

public class RawMessageAdapter extends MessageAdapter implements RawMessage, RawMessage
  • Field Details

  • Constructor Details

    • RawMessageAdapter

      public RawMessageAdapter(RawMessage plug_msg)
    • RawMessageAdapter

      public RawMessageAdapter(RawMessage core_msg)
  • Method Details

    • getRawPayload

      public ByteBuffer[] getRawPayload()
      Description copied from interface: RawMessage
      Get the raw data payload for this message.
      Specified by:
      getRawPayload in interface RawMessage
      Returns:
      raw payload
    • getRawData

      public DirectByteBuffer[] getRawData()
      Description copied from interface: RawMessage
      Get the message's raw data payload.
      Specified by:
      getRawData in interface RawMessage
      Returns:
      data payload buffers
    • getPriority

      public int getPriority()
      Description copied from interface: RawMessage
      Get the message's queue priority.
      Specified by:
      getPriority in interface RawMessage
      Returns:
      priority
    • isNoDelay

      public boolean isNoDelay()
      Description copied from interface: RawMessage
      Is this a no-delay message. No-delay messages are transmitted immediately, i.e. force-flushed out the transport.
      Specified by:
      isNoDelay in interface RawMessage
      Returns:
      true if a no-delay message
    • setNoDelay

      public void setNoDelay()
      Description copied from interface: RawMessage
      Set no-delay for this message
      Specified by:
      setNoDelay in interface RawMessage
    • messagesToRemove

      public Message[] messagesToRemove()
      Description copied from interface: RawMessage
      Get the yet-unsent message types that should be removed before queueing this message for sending.
      Specified by:
      messagesToRemove in interface RawMessage
      Returns:
      message types; null if no types
    • getOriginalMessage

      public Message getOriginalMessage()
      Description copied from interface: RawMessage
      Get the message this raw message is based upon.
      Specified by:
      getOriginalMessage in interface RawMessage
      Returns:
      original message
    • getBaseMessage

      public Message getBaseMessage()
      Description copied from interface: RawMessage
      Get the message this raw message is based upon.
      Specified by:
      getBaseMessage in interface RawMessage
      Returns:
      original message