Class MySQLHandshakePacket
java.lang.Object
org.apache.shardingsphere.db.protocol.mysql.packet.handshake.MySQLHandshakePacket
- All Implemented Interfaces:
MySQLPacket,DatabasePacket<MySQLPacketPayload>
Handshake packet protocol for MySQL.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMySQLHandshakePacket(int connectionId, MySQLAuthPluginData authPluginData) MySQLHandshakePacket(MySQLPacketPayload payload) -
Method Summary
Modifier and TypeMethodDescriptionintGet sequence ID.voidsetAuthPluginName(MySQLAuthenticationMethod mysqlAuthenticationMethod) Set authentication plugin name.voidwrite(MySQLPacketPayload payload)
-
Constructor Details
-
MySQLHandshakePacket
-
MySQLHandshakePacket
-
-
Method Details
-
setAuthPluginName
Set authentication plugin name.- Parameters:
mysqlAuthenticationMethod- MySQL authentication method
-
write
- Specified by:
writein interfaceDatabasePacket<MySQLPacketPayload>
-
getSequenceId
public int getSequenceId()Description copied from interface:MySQLPacketGet sequence ID.- Specified by:
getSequenceIdin interfaceMySQLPacket- Returns:
- sequence ID
-