Class PingPacket

  • All Implemented Interfaces:
    ClientMessage

    public final class PingPacket
    extends java.lang.Object
    implements ClientMessage
    Ping packet see COM_PING (https://mariadb.com/kb/en/com_ping/)
    • Field Detail

      • INSTANCE

        public static final PingPacket INSTANCE
        default instance
    • Constructor Detail

      • PingPacket

        public PingPacket()
    • Method Detail

      • encode

        public int encode​(Writer writer,
                          Context context)
                   throws java.io.IOException
        Description copied from interface: ClientMessage
        Encode client message to socket.
        Specified by:
        encode in interface ClientMessage
        Parameters:
        writer - socket writer
        context - connection context
        Returns:
        number of client message written
        Throws:
        java.io.IOException - if socket error occur