public interface SkipListener<T,S> extends StepListener
Step
implementations at the appropriate time in the step lifecycle.
Implementers of this interface should not assume that any method will be
called immediately after an error has been encountered. Because there
may be errors later on in processing the chunk, this listener will not be
called until just before committing.Modifier and Type | Method and Description |
---|---|
void |
onSkipInProcess(T item,
java.lang.Throwable t)
This item failed on processing with the given exception, and a skip was called
for.
|
void |
onSkipInRead(java.lang.Throwable t)
Callback for a failure on read that is legal, so is not going to be
re-thrown.
|
void |
onSkipInWrite(S item,
java.lang.Throwable t)
This item failed on write with the given exception, and a skip was called
for.
|
void onSkipInRead(java.lang.Throwable t)
t
- cause of the failurevoid onSkipInWrite(S item, java.lang.Throwable t)
item
- the failed itemt
- the cause of the failurevoid onSkipInProcess(T item, java.lang.Throwable t)
item
- the failed itemt
- the cause of the failure