org.springframework.batch.core.listener
Class SkipListenerSupport

java.lang.Object
  extended by 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

Constructor Summary
SkipListenerSupport()
           
 
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
 

Constructor Detail

SkipListenerSupport

public SkipListenerSupport()
Method Detail

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.

Specified by:
onSkipInRead in interface SkipListener

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 is deferred until a new transaction is available. This callback might occur more than once for the same item, but only once in successful transaction.

Specified by:
onSkipInWrite in interface SkipListener
Parameters:
item - the failed item
t - the cause of the failure


Copyright © 2008 SpringSource. All Rights Reserved.