public class CountedErrorHandler extends java.lang.Object implements ErrorHandler
ErrorHandler which calls AtomicCounter.increment() before delegating the exception.| Constructor and Description |
|---|
CountedErrorHandler(ErrorHandler errorHandler,
AtomicCounter errorCounter)
Construct a counted error handler with a delegate and counter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Throwable throwable)
Callback to notify of an error that has occurred when processing an operation or event.
|
public CountedErrorHandler(ErrorHandler errorHandler, AtomicCounter errorCounter)
errorHandler - to delegate to.errorCounter - to increment before delegation.public void onError(java.lang.Throwable throwable)
ErrorHandlerThis method is assumed non-throwing, so rethrowing the exception or triggering further exceptions would be a bug.
onError in interface ErrorHandlerthrowable - that occurred while processing an operation or event.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.