Class PingPacket

java.lang.Object
org.mariadb.jdbc.message.client.PingPacket
All Implemented Interfaces:
ClientMessage

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

    • INSTANCE

      public static final PingPacket INSTANCE
      default instance
  • Constructor Details

    • PingPacket

      public PingPacket()
  • Method Details

    • encode

      public int encode(Writer writer, Context context) throws 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:
      IOException - if socket error occur