Class ExpectedResultVerificationErrorHandler
java.lang.Object
io.nosqlbench.engine.api.activityapi.errorhandling.modular.handlers.ExpectedResultVerificationErrorHandler
- All Implemented Interfaces:
ErrorMetrics.Aware,ErrorHandler
public class ExpectedResultVerificationErrorHandler
extends Object
implements ErrorHandler, ErrorMetrics.Aware
The expected result verification error handler will create, if needed, two metric
objects for error and retry counts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleError(String name, Throwable t, long cycle, long durationInNanos, ErrorDetail detail) 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.voidsetErrorMetricsSupplier(Supplier<ErrorMetrics> supplier)
-
Constructor Details
-
ExpectedResultVerificationErrorHandler
public ExpectedResultVerificationErrorHandler()
-
-
Method Details
-
handleError
public ErrorDetail handleError(String name, Throwable t, long cycle, long durationInNanos, ErrorDetail detail) Description copied from interface:ErrorHandlerAn 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:
handleErrorin interfaceErrorHandler- Parameters:
t- Thrown from within the activity's action loopcycle- The cycle which was executing when it randurationInNanos- How long into an operation the error occured- Returns:
- true if the operation should be retried, assuming retries available
-
setErrorMetricsSupplier
- Specified by:
setErrorMetricsSupplierin interfaceErrorMetrics.Aware
-