org.springframework.batch.core.listener
Class SkipListenerSupport
java.lang.Object
org.springframework.batch.core.listener.SkipListenerSupport
- All Implemented Interfaces:
- SkipListener, StepListener
public class SkipListenerSupport
- extends Object
- implements SkipListener
Basic no-op implementations of all SkipListener
implementations.
- Author:
- Dave Syer
Method Summary |
void |
onSkipInRead(Throwable t)
Callback for a failure on read that is legal, so is not going to be
re-thrown. |
void |
onSkipInWrite(Object item,
Throwable t)
This item failed on write with the given exception, and a skip was called
for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkipListenerSupport
public SkipListenerSupport()
onSkipInRead
public void onSkipInRead(Throwable t)
- Description copied from interface:
SkipListener
- Callback for a failure on read that is legal, so is not going to be
re-thrown. In case transaction is rolled back and items are re-read, this
callback will occur repeatedly for the same cause.
- Specified by:
onSkipInRead
in interface SkipListener
- Parameters:
t
- cause of the failure
onSkipInWrite
public void onSkipInWrite(Object item,
Throwable t)
- Description copied from interface:
SkipListener
- This item failed on write with the given exception, and a skip was called
for. The callback occurs immediately after the item is marked for future
skipping and is called only once for the same item, regardless of
rollbacks (chunk may be re-processed several times or the exception on
write may not cause rollback at all).
- Specified by:
onSkipInWrite
in interface SkipListener
- Parameters:
item
- the failed itemt
- the cause of the failure
Copyright © 2009 SpringSource. All Rights Reserved.