接口 Message

  • 所有已知实现类:
    NativePacketPayload, XMessage

    public interface Message
    Message is the content of a full single message (native protocol packet or protobuf message), independent from on-wire splitting, communicated with the server.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      byte[] getByteBuffer()
      Returns the array of bytes this Buffer is using to read from.
      int getPosition()
      Returns the current position to write to/ read from
    • 方法详细资料

      • getByteBuffer

        byte[] getByteBuffer()
        Returns the array of bytes this Buffer is using to read from.
        返回:
        byte array being read from
      • getPosition

        int getPosition()
        Returns the current position to write to/ read from
        返回:
        the current position to write to/ read from