public class TradeProcessor extends java.lang.Object implements ItemProcessor<Trade,Trade>
Constructor and Description |
---|
TradeProcessor() |
Modifier and Type | Method and Description |
---|---|
Trade |
process(Trade item)
Process the provided item, returning a potentially modified or new item for continued
processing.
|
void |
setValidationFailure(int failure)
Public setter for the the index on which failure should occur.
|
public void setValidationFailure(int failure)
failure
- the failure to setpublic Trade process(Trade item) throws java.lang.Exception
ItemProcessor
process
in interface ItemProcessor<Trade,Trade>
item
- to be processedjava.lang.Exception