|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.OrderInfoBase<T>
public class OrderInfoBase<T extends OrderInfoCache>
A foundation order information class for entries in an OrderInfoCache cache.
| Constructor Summary | |
|---|---|
OrderInfoBase(T cache,
OrderID orderID,
OrderID origOrderID,
UserID actorID)
Creates a new cache entry of the given cache for an order with the given self and parent IDs, and the given actor ID. |
|
| Method Summary | |
|---|---|
UserID |
getActorID()
Returns the actor ID of the receiver's order. |
protected T |
getCache()
Returns the receiver's cache. |
OrderID |
getOrderID()
Returns the ID of the receiver's order. |
OrderID |
getOrigOrderID()
Returns the parent order ID of the receiver's order. |
UserID |
getViewerID()
Returns the viewer ID of the receiver's order. |
boolean |
isViewerIDSet()
Checks whether the viewer ID of the receiver's order has been set. |
void |
setAckExpected(boolean ackExpected)
Sets to the given value a flag indicating whether the ORS is expected to issue an ack for the receiver's order. |
void |
setAckProcessed(boolean ackProcessed)
Sets to the given value a flag indicating whether the ORS has retrieved the ack principals for the receiver's order. |
void |
setERPersisted(boolean erPersisted)
Sets to the given value a flag indicating whether an execution report (ack, or broker response) for the receiver's order has been persisted. |
void |
setMessageProcessed(Message msg)
Notifies the receiver that the given message has been processed. |
void |
setResponseExpected(boolean responseExpected)
Sets to the given value a flag indicating whether the ORS is expected to receive a response to the receiver's order. |
void |
setResponseProcessed(boolean responseProcessed)
Sets to the given value a flag indicating whether the ORS has retrieved the response principals for the receiver's order. |
void |
setViewerID(UserID viewerID)
Sets the viewer ID of the receiver's order to the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderInfoBase(T cache,
OrderID orderID,
OrderID origOrderID,
UserID actorID)
cache - The cache.orderID - The order ID.origOrderID - The parent order ID. It may be null for
orders that are chain roots.actorID - The actor ID.| Method Detail |
|---|
protected T getCache()
public OrderID getOrderID()
OrderInfo
getOrderID in interface OrderInfopublic OrderID getOrigOrderID()
OrderInfo
getOrigOrderID in interface OrderInfopublic UserID getActorID()
OrderInfo
getActorID in interface OrderInfopublic boolean isViewerIDSet()
OrderInfoOrderInfo.getViewerID() should not be used; true indicates that OrderInfo.getViewerID() can be used.
isViewerIDSet in interface OrderInfopublic UserID getViewerID()
OrderInfoOrderInfo.setViewerID(UserID) (which
may take place implicitly, in the constructor); accordingly, it
is best to guard calls to this method with a call to OrderInfo.isViewerIDSet().
getViewerID in interface OrderInfopublic void setViewerID(UserID viewerID)
OrderInfo
setViewerID in interface OrderInfoviewerID - The ID. It may be null if we could not deduce a
viewer.public void setERPersisted(boolean erPersisted)
OrderInfo
setERPersisted in interface OrderInfopublic void setAckExpected(boolean ackExpected)
OrderInfo
setAckExpected in interface OrderInfoackExpected - The flag.public void setAckProcessed(boolean ackProcessed)
OrderInfo
setAckProcessed in interface OrderInfoackProcessed - The flag.public void setResponseExpected(boolean responseExpected)
OrderInfo
setResponseExpected in interface OrderInforesponseExpected - The flag.public void setResponseProcessed(boolean responseProcessed)
OrderInfo
setResponseProcessed in interface OrderInforesponseProcessed - The flag.public void setMessageProcessed(Message msg)
OrderInfo
setMessageProcessed in interface OrderInfomsg - The message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||