org.springframework.batch.retry
Class StubItemKeyGeneratorRecoverer

java.lang.Object
  extended by org.springframework.batch.retry.StubItemKeyGeneratorRecoverer
All Implemented Interfaces:
ItemKeyGenerator, ItemRecoverer

public class StubItemKeyGeneratorRecoverer
extends Object
implements ItemRecoverer, ItemKeyGenerator


Constructor Summary
StubItemKeyGeneratorRecoverer()
           
 
Method Summary
 Object getKey(Object item)
          Return the item (assume it is its own key).
 boolean recover(Object item, Throwable cause)
          Do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubItemKeyGeneratorRecoverer

public StubItemKeyGeneratorRecoverer()
Method Detail

recover

public boolean recover(Object item,
                       Throwable cause)
Do nothing. Subclassses should override to implement recovery behaviour.

Specified by:
recover in interface ItemRecoverer
Returns:
false if nothing can be done (the default), or true if the item can now safely be ignored or committed.
See Also:
ItemRecoverer.recover(java.lang.Object, Throwable)

getKey

public Object getKey(Object item)
Return the item (assume it is its own key).

Specified by:
getKey in interface ItemKeyGenerator
See Also:
ItemKeyGenerator.getKey(java.lang.Object)


Copyright © 2008 SpringSource. All Rights Reserved.