Exemplo n.º 1
0
 public void addResultSetHoldTimeNano(long statementExecuteNano, long resultHoldTimeNano) {
   resultSetHoldTimeNanoUpdater.addAndGet(this, resultHoldTimeNano);
   executeAndResultSetHoldTimeUpdater.addAndGet(this, statementExecuteNano + resultHoldTimeNano);
   executeAndResultHoldTimeHistogramRecord(
       (statementExecuteNano + resultHoldTimeNano) / 1000 / 1000);
   updateCount_0_1_Updater.incrementAndGet(this);
 }
Exemplo n.º 2
0
  public void addExecuteTime(
      StatementExecuteType executeType, boolean firstResultSet, long nanoSpan) {
    addExecuteTime(nanoSpan);

    if (StatementExecuteType.ExecuteQuery != executeType && !firstResultSet) {
      executeAndResultHoldTimeHistogramRecord(nanoSpan);
    }
  }