Package org.mariadb.jdbc.message.client
Class QuitPacket
java.lang.Object
org.mariadb.jdbc.message.client.QuitPacket
- All Implemented Interfaces:
ClientMessage
ending connection packet COM_QUIT proper end of a connection. see
https://mariadb.com/kb/en/com_quit/
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mariadb.jdbc.message.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, getLocalInfileInputStream, mightBeBulkResult, readPacket, validateLocalFileName
-
Field Details
-
INSTANCE
default instance to encode packet
-
-
Constructor Details
-
QuitPacket
public QuitPacket()
-
-
Method Details
-
encode
Description copied from interface:ClientMessageEncode client message to socket.- Specified by:
encodein interfaceClientMessage- Parameters:
writer- socket writercontext- connection context- Returns:
- number of client message written
- Throws:
IOException- if socket error occur
-