Class CountErrorHandler

java.lang.Object
io.nosqlbench.engine.api.activityapi.errorhandling.modular.handlers.CounterErrorHandler
io.nosqlbench.engine.api.activityapi.errorhandling.modular.handlers.CountErrorHandler
All Implemented Interfaces:
ErrorMetrics.Aware, ErrorHandler

public class CountErrorHandler extends CounterErrorHandler
This is here to allow the classic name 'count' to work although the modern error handler scheme uses canonical metric type names.
  • Constructor Details

    • CountErrorHandler

      public CountErrorHandler()
  • Method Details

    • handleError

      public ErrorDetail handleError(String name, Throwable t, long cycle, long durationInNanos, ErrorDetail detail)
      Description copied from interface: ErrorHandler
      An error handler is able to do side-effect processing for a particular error type, as well as modify the error detail that will be presented back to the caller.
      Specified by:
      handleError in interface ErrorHandler
      Overrides:
      handleError in class CounterErrorHandler
      Parameters:
      t - Thrown from within the activity's action loop
      cycle - The cycle which was executing when it ran
      durationInNanos - How long into an operation the error occured
      Returns:
      true if the operation should be retried, assuming retries available