Class MySQLCommandPacketFactory
java.lang.Object
org.apache.shardingsphere.proxy.frontend.mysql.command.MySQLCommandPacketFactory
Command packet factory for MySQL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MySQLCommandPacketnewInstance(MySQLCommandPacketType commandPacketType, MySQLPacketPayload payload, ConnectionSession connectionSession, boolean sqlCommentParseEnabled) Create new instance of command packet.
-
Constructor Details
-
MySQLCommandPacketFactory
public MySQLCommandPacketFactory()
-
-
Method Details
-
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
-