|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.orderloader.ServerOrderProcessor
public class ServerOrderProcessor
An order processor that sends orders to the server.
| Field Summary | |
|---|---|
static long |
MAXIMUM_DELIVERY_WAIT
The maximum time, in ms, to wait without receiving any acknowledgements from the ORS until delivery of all sent orders is acknowledged by the ORS. |
| Constructor Summary | |
|---|---|
ServerOrderProcessor(ClientParameters inParameter)
Creates an instance. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MAXIMUM_DELIVERY_WAIT
| Constructor Detail |
|---|
public ServerOrderProcessor(ClientParameters inParameter)
throws ClientInitException,
ConnectionException
inParameter - the parameters to connect to the server.
ClientInitException - if there were unexpected issues initializing
the client.
ConnectionException - if there were network issues initializing
the client.| Method Detail |
|---|
public void processOrder(Order inOrder,
int inOrderIndex)
throws Exception
OrderProcessor
processOrder in interface OrderProcessorinOrder - 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 orderpublic void done()
OrderProcessor
done in interface OrderProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||