Class MySQLCommandPacketFactory
- java.lang.Object
-
- org.apache.shardingsphere.proxy.frontend.mysql.command.MySQLCommandPacketFactory
-
public final class MySQLCommandPacketFactory extends Object
Command packet factory for MySQL.
-
-
Constructor Summary
Constructors Constructor Description MySQLCommandPacketFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MySQLCommandPacketnewInstance(MySQLCommandPacketType commandPacketType, MySQLPacketPayload payload, ConnectionSession connectionSession, boolean sqlCommentParseEnabled)Create new instance of command packet.
-
-
-
Method Detail
-
newInstance
public static MySQLCommandPacket newInstance(MySQLCommandPacketType commandPacketType, MySQLPacketPayload payload, ConnectionSession connectionSession, boolean sqlCommentParseEnabled)
Create new instance of command packet.- Parameters:
commandPacketType- command packet type for MySQLpayload- packet payload for MySQLconnectionSession- connection sessionsqlCommentParseEnabled- SQL comment parse enabled- Returns:
- created instance
-
-