|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teraspaces.qwfix.ordermanager.FIXSessionOrderList
public final class FIXSessionOrderList
Represents list of all orders against a specific FIXSessionPersistence.
| Method Summary | |
|---|---|
List<FIXCrossOrder> |
getCrossOrders()
Gets the list all cross orders in current FIXSessionOrderList. |
FIXOrderMessage |
getExecutionByExecID(String execID)
Gets the execution by ExecID. |
List<FIXListOrder> |
getListOrders()
Gets the list all list orders in current FIXSessionOrderList. |
FIXOrderMessage |
getOrderByClOrdID(String clOrdID)
Gets a regular order identified by ClOrdID. |
FIXOrderMessage |
getOrderByCrossID(String crossID)
Gets the cross order by specified crossID. |
FIXListOrder |
getOrderByListID(String listID)
Gets the list order by specified ListID. |
List<FIXRegularOrder> |
getRegularOrders()
Gets the list of all regular orders (those can be identified by ClOrdID) managed in current FIXSessionOrderList. |
FIXSessionPersistence |
getSessionPersistence()
Gets the session persistence. |
boolean |
isClOrdIDAvailable(String clOrdID)
Determines whether a ClOrdID is available. |
void |
setCapacity(int nRegularOrder,
int nCrossOrder,
int nListOrder,
int nExecution)
Initializes the capacity of the current FIXSessionOrderList. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isClOrdIDAvailable(String clOrdID)
clOrdID - the ClOrdID
public FIXSessionPersistence getSessionPersistence()
FIXSessionOrderManager has
FIXSessionOrderManagerSettings.uniqueIDForMultipleDaySessions() in its settingspublic FIXOrderMessage getOrderByClOrdID(String clOrdID)
clOrdID - the ClOrdID
FIXOrderMessage.NULL will be returned the order is not found.public FIXOrderMessage getOrderByCrossID(String crossID)
crossID - the CrossID
FIXOrderMessage.NULL will be returned the order is not found.public FIXListOrder getOrderByListID(String listID)
listID - the ListID
null if not foundpublic FIXOrderMessage getExecutionByExecID(String execID)
execID - the ExecID
FIXOrderMessage.NULL will be returned the execution is not found.public List<FIXRegularOrder> getRegularOrders()
The collection contains the list of all single orders, side orders populated from all cross orders, and single orders populated from all list orders.
This collection only contains the orders that can be identified by unique ClOrdID. In order to get all cross orders and list orders, use getCrossOrders() or getListOrders().
public List<FIXCrossOrder> getCrossOrders()
Cross orders are orders identified by CrossID. To get the list of orders of other types, see getRegularOrders() or getListOrders().
public List<FIXListOrder> getListOrders()
Cross orders are orders identified by ListID. To get the list of orders of other types, see getRegularOrders() or getCrossOrders().
public void setCapacity(int nRegularOrder,
int nCrossOrder,
int nListOrder,
int nExecution)
FIXSessionOrderList uses Hashtable to manage unique IDs such as "ClOrdID", "CrossID", "ListID" and "ExecID".
This method will reset the capacity of those hash tables. Application can use this method to fine tune the performance by reducing or even eliminating the hash table resize, which will result in creating a new bucket list and copying the existing items over. It is especially useful in applications that require low latency in order handling, such as high frequency trading.
nRegularOrder - capacity of regular ordersnCrossOrder - capacity of cross ordersnListOrder - capacity of list ordersnExecution - capacity of executions
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||