T
- the type of the item.public interface ItemProcessor<T>
Modifier and Type | Method and Description |
---|---|
void |
endItems()
Called after all items are processed.
|
void |
processItem(T item)
Processes a single item.
|
void |
startItems()
Called before any items are processed.
|
void startItems() throws java.lang.Exception
java.lang.Exception
- if an error occurs.void endItems() throws java.lang.Exception
java.lang.Exception
- if an error occurs.void processItem(T item) throws java.lang.Exception
item
- the item to process.java.lang.Exception
- if an error occurs.