Class Cqld4BaseOpDispenser<T extends Cqld4BaseOp<?>>

  • Field Details

    • sessionF

      protected final LongFunction<com.datastax.oss.driver.api.core.CqlSession> sessionF
  • Constructor Details

  • Method Details

    • getMaxPages

      public int getMaxPages()
    • isRetryReplace

      public boolean isRetryReplace()
    • getMaxLwtRetries

      public int getMaxLwtRetries()
    • getEnhancedStmtFunc

      protected <S extends com.datastax.oss.driver.api.core.cql.Statement> LongFunction<S> getEnhancedStmtFunc(LongFunction<S> basefunc, ParsedOp op)
      All implementations of a CQL Statement Dispenser should be using the method provided by this function. This ensures that Statement-level attributes are handled uniformly and in one place.

      This takes the base statement function and decorates it optionally with each additional qualified modifier, short-circuiting those which are not specified. This allows default behavior to take precedence as well as avoids unnecessary calling overhead for implicit attributes. This should be called when the stmt function is initialized within each dispenser, not for each time dispensing occurs.

    • recordFetchedRows

      public void recordFetchedRows(int rows)
      Specified by:
      recordFetchedRows in interface CqlOpMetrics
    • recordFetchedPages

      public void recordFetchedPages(int pages)
      Specified by:
      recordFetchedPages in interface CqlOpMetrics
    • recordFetchedBytes

      public void recordFetchedBytes(int bytes)
      Specified by:
      recordFetchedBytes in interface CqlOpMetrics