Class TraceObject


  • public class TraceObject
    extends Object
    • Field Detail

      • COMPRESSED_PROTOCOL_COMPRESSED_PACKET

        public static final int COMPRESSED_PROTOCOL_COMPRESSED_PACKET
        See Also:
        Constant Field Values
      • COMPRESSED_PROTOCOL_NOT_COMPRESSED_PACKET

        public static final int COMPRESSED_PROTOCOL_NOT_COMPRESSED_PACKET
        See Also:
        Constant Field Values
    • Constructor Detail

      • TraceObject

        public TraceObject​(boolean send,
                           int indicatorFlag,
                           long threadId,
                           byte[]... buf)
        Permit to store MariaDB packets.
        Parameters:
        send - was packet send or received
        indicatorFlag - indicator. can be NOT_COMPRESSED, COMPRESSED_PROTOCOL_COMPRESSED_PACKET or COMPRESSED_PROTOCOL_NOT_COMPRESSED_PACKET
        threadId - current connection thread Id
        buf - buffers
    • Method Detail

      • remove

        public void remove()
        Clear trace array for easy garbage.
      • isSend

        public boolean isSend()
      • getIndicatorFlag

        public int getIndicatorFlag()
      • getBuf

        public byte[][] getBuf()
      • getThreadId

        public long getThreadId()