Class QuitPacket

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

public final class QuitPacket extends Object implements ClientMessage
ending connection packet COM_QUIT proper end of a connection. see https://mariadb.com/kb/en/com_quit/
  • Field Details

    • INSTANCE

      public static final QuitPacket INSTANCE
      default instance to encode packet
  • Constructor Details

    • QuitPacket

      public QuitPacket()
  • 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