public abstract class CountingHandler extends Object implements FaultHandler
FaultHandler that count failures and keep track of the last observed failure.iteration| Constructor and Description |
|---|
CountingHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handle(Exception failure,
Exception lastFailure,
int failureCount)
Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
|
void |
handle(RuntimeException failure)
Indicates whether iteration should continue or stop the iteration on the occurrence of an iteration failure.
|
public final void handle(RuntimeException failure)
FaultHandlerhandle in interface FaultHandlerfailure - the failureprotected abstract void handle(Exception failure, Exception lastFailure, int failureCount)
failure - the failurelastFailure - the failure observed previously, or null if this is the first observed failurefailureCount - the number of failures counted so far, 0 if this is the first observed failureRuntimeException - if no element can be yielded from the input elementCopyright © 2014. All Rights Reserved.