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