|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrderProcessor
Processes orders parsed by the OrderParser.
The processor keeps track of orders that could not be sent to the
server.
Implementations may send the orders to the server or do
something else with them. For example, a processor might inject
the orders into a data flow or simply log them.
| Method Summary | |
|---|---|
void |
done()
Invoked to release resources when the system is done processing orders. |
void |
processOrder(Order inOrder,
int inOrderIndex)
Processes the supplied order. |
| Method Detail |
|---|
void processOrder(Order inOrder,
int inOrderIndex)
throws Exception
inOrder - the order to be sent.inOrderIndex - the index number of this order. When orders are
fed from a file, this will be the line number at which the order
appears in the file.
Exception - if there was an error processing the ordervoid done()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||