|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.SimpleOrderInfoCache
public class SimpleOrderInfoCache
A cache of order information. Cache entries are instances of SimpleOrderInfo.
WARNING: certain cache entries may be maintained forever. This may happen if, for example, a broker response is expected (because an order has been sent to the broker), but the response is never received. Or if the ORS cannot persist the actor/viewer of an order. This behavior can leak to ORS memory leaks over extended periods of time and under scenarios of frequent faulty conditions.
| Constructor Summary | |
|---|---|
SimpleOrderInfoCache()
|
|
| Method Summary | |
|---|---|
SimpleOrderInfo |
get(OrderID orderID)
Returns the receiver's entry for the order with the given ID. |
SimpleOrderInfo |
put(OrderID orderID,
OrderID origOrderID,
UserID actorID)
Adds (and returns) a new entry to the receiver for an order with the given self and parent IDs, and the given actor ID. |
void |
remove(OrderID orderID)
Removes the receiver's entry for the order with the given ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleOrderInfoCache()
| Method Detail |
|---|
public void remove(OrderID orderID)
orderID - The order ID.
public SimpleOrderInfo put(OrderID orderID,
OrderID origOrderID,
UserID actorID)
OrderInfoCache
put in interface OrderInfoCacheorderID - The order ID.origOrderID - The parent order ID. It may be null for
orders that are chain roots.actorID - The actor ID.
public SimpleOrderInfo get(OrderID orderID)
OrderInfoCache
get in interface OrderInfoCacheorderID - The order ID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||