org.springframework.batch.core.listener
Class CompositeSkipListener

java.lang.Object
  extended by org.springframework.batch.core.listener.CompositeSkipListener
All Implemented Interfaces:
SkipListener, StepListener

public class CompositeSkipListener
extends Object
implements SkipListener

Author:
Dave Syer

Constructor Summary
CompositeSkipListener()
           
 
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.
 void register(SkipListener listener)
          Register additional listener.
 void setListeners(SkipListener[] listeners)
          Public setter for the listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeSkipListener

public CompositeSkipListener()
Method Detail

setListeners

public void setListeners(SkipListener[] listeners)
Public setter for the listeners.

Parameters:
listeners -

register

public void register(SkipListener listener)
Register additional listener.

Parameters:
listener -

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.