|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.OrderInfoBase<SimpleOrderInfoCache>
org.marketcetera.ors.SimpleOrderInfo
public class SimpleOrderInfo
An entry for order information in a SimpleOrderInfoCache
cache.
| Constructor Summary | |
|---|---|
SimpleOrderInfo(SimpleOrderInfoCache 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 | |
|---|---|
protected Boolean |
getAckExpected()
Returns a flag indicating whether the ORS is expected to issue an ack for the receiver's order. |
protected Boolean |
getAckProcessed()
Returns a flag indicating whether the ORS has retrieved the ack principals for the receiver's order. |
protected Boolean |
getERPersisted()
Returns a flag indicating whether an execution report (ack, or broker response) for the receiver's order has been persisted. |
protected Boolean |
getResponseExpected()
Returns a flag indicating whether the ORS is expected to receive a response to the receiver's order. |
protected Boolean |
getResponseProcessed()
Returns a flag indicating whether the ORS has retrieved the response principals for the receiver's order. |
protected boolean |
mayRemove()
Checks whether the receiver can be safely removed from the cache. |
protected void |
removeIfDesired()
Checks whether the receiver should be removed from the cache, and, if so, effects such removal. |
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 |
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. |
protected boolean |
shouldRemove()
Checks whether the receiver should be removed from the cache. |
| Methods inherited from class org.marketcetera.ors.OrderInfoBase |
|---|
getActorID, getCache, getOrderID, getOrigOrderID, getViewerID, isViewerIDSet, setMessageProcessed, setViewerID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleOrderInfo(SimpleOrderInfoCache 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 Boolean getERPersisted()
protected Boolean getAckExpected()
protected Boolean getAckProcessed()
protected Boolean getResponseExpected()
protected Boolean getResponseProcessed()
protected boolean mayRemove()
protected boolean shouldRemove()
mayRemove() and offers no significant
performance benefits.
protected void removeIfDesired()
public void setERPersisted(boolean erPersisted)
OrderInfo
setERPersisted in interface OrderInfosetERPersisted in class OrderInfoBase<SimpleOrderInfoCache>public void setAckExpected(boolean ackExpected)
OrderInfo
setAckExpected in interface OrderInfosetAckExpected in class OrderInfoBase<SimpleOrderInfoCache>ackExpected - The flag.public void setAckProcessed(boolean ackProcessed)
OrderInfo
setAckProcessed in interface OrderInfosetAckProcessed in class OrderInfoBase<SimpleOrderInfoCache>ackProcessed - The flag.public void setResponseExpected(boolean responseExpected)
OrderInfo
setResponseExpected in interface OrderInfosetResponseExpected in class OrderInfoBase<SimpleOrderInfoCache>responseExpected - The flag.public void setResponseProcessed(boolean responseProcessed)
OrderInfo
setResponseProcessed in interface OrderInfosetResponseProcessed in class OrderInfoBase<SimpleOrderInfoCache>responseProcessed - The flag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||