org.springframework.batch.item
Interface FailedItemIdentifier
- All Known Implementing Classes:
- JmsItemReader
public interface FailedItemIdentifier
Strategy interface to distinguish a new item from one that has been processed
before and failed, e.g. by examining a message flag.
- Author:
- Dave Syer
Method Summary |
boolean |
hasFailed(Object item)
Inspect the item and determine if it has previously failed processing. |
hasFailed
boolean hasFailed(Object item)
- Inspect the item and determine if it has previously failed processing.
The safest choice when the answer is indeterminate is 'true'.
- Parameters:
item
- the current item.
- Returns:
- true if the item has been seen before and is known to have failed
processing.
Copyright © 2008 SpringSource. All Rights Reserved.