Package org.mariadb.jdbc.message.client
Class PingPacket
java.lang.Object
org.mariadb.jdbc.message.client.PingPacket
- All Implemented Interfaces:
ClientMessage
Ping packet see COM_PING (https://mariadb.com/kb/en/com_ping/)
-
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
-
-
Constructor Details
-
PingPacket
public PingPacket()
-
-
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
-