public interface OrderProcessor
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.| Modifier and Type | Method and Description |
|---|---|
void |
done()
Invoked to release resources when the system is done processing
orders.
|
void |
processOrder(Order inOrder,
int inOrderIndex)
Processes the supplied order.
|
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()
Copyright © 2014. All Rights Reserved.