I- type of input item
O- type of output item
public interface ItemProcessor<I,O>
nullindicates that the item should not be continued to be processed.
|Modifier and Type||Method and Description|
Process the provided item, returning a potentially modified or new item for continued processing.
@Nullable O process(@NonNull I item) throws java.lang.Exception
null, it is assumed that processing of the item should not continue. A
nullitem will never reach this method because the only possible sources are:
ItemReader(which indicates no more items)
ItemProcessorin a composite processor (which indicates a filtered item)
item- to be processed, never
nullif processing of the provided item should not continue.
java.lang.Exception- thrown if exception occurs during processing.