public static MySQLCommandPacketType getCommandPacketType ( final MySQLPacketPayload payload ) { Preconditions . checkArgument ( 0 == payload . readInt1 ( ) , "Sequence ID of MySQL command packet must be `0`." ) ; return MySQLCommandPacketType . valueOf ( payload . readInt1 ( ) ) ; }
Get command packet type .