Class CmdInformationBatch

java.lang.Object
org.mariadb.jdbc.internal.com.read.dao.CmdInformationBatch
All Implemented Interfaces:
CmdInformation

public class CmdInformationBatch extends Object implements CmdInformation
  • Field Details

    • insertIds

      private final Queue<Long> insertIds
    • updateCounts

      private final Queue<Long> updateCounts
    • expectedSize

      private final int expectedSize
    • autoIncrement

      private final int autoIncrement
    • insertIdNumber

      private int insertIdNumber
    • hasException

      private boolean hasException
    • rewritten

      private boolean rewritten
  • Constructor Details

    • CmdInformationBatch

      public CmdInformationBatch(int expectedSize, int autoIncrement)
      CmdInformationBatch is similar to CmdInformationMultiple, but knowing it's for batch, doesn't take take of moreResult. That permit to use ConcurrentLinkedQueue, and then when option "useBatchMultiSend" is set and batch is interrupted, will permit to reading thread to keep connection in a correct state without any ConcurrentModificationException.
      Parameters:
      expectedSize - expected batch size.
      autoIncrement - connection auto increment value.
  • Method Details