org.marketcetera.ors
Interface OrderInfoCache

All Known Implementing Classes:
SimpleOrderInfoCache

public interface OrderInfoCache

A cache of order information. Cache entries are instances of OrderInfo.

Since:
2.1.0
Version:
$Id: OrderInfoCache.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Method Summary
 OrderInfo get(OrderID orderID)
          Returns the receiver's entry for the order with the given ID.
 OrderInfo 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.
 

Method Detail

put

OrderInfo 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.

Parameters:
orderID - The order ID.
origOrderID - The parent order ID. It may be null for orders that are chain roots.
actorID - The actor ID.
Returns:
The new entry.

get

OrderInfo get(OrderID orderID)
Returns the receiver's entry for the order with the given ID.

Parameters:
orderID - The order ID.
Returns:
The entry. It may be null if the received has no such entry.


Copyright © 2012. All Rights Reserved.