|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.ors.ReplyPersister
public class ReplyPersister
A persister of trade messages (replies) sent by the ORS to clients. It also handles mapping of messages to actors/viewers, via either replies previously persisted, or via an in-memory cache.
| Constructor Summary | |
|---|---|
ReplyPersister(ReportHistoryServices historyServices,
OrderInfoCache cache)
Creates a new persister which relies on the given report history services provider for persistence operations. |
|
| Method Summary | |
|---|---|
OrderInfo |
addOutgoingOrder(Message msg,
UserID actorID)
Adds the given outgoing order message, with the given actorID, to the receiver's cache, and returns the new cache entry. |
Principals |
getPrincipals(Message inMessage,
boolean isAck)
Returns the principals associated with the given message. |
void |
persistReply(TradeMessage msg)
Persists the given message, which, while doing so, may be modified. |
void |
reportSaved(ReportBase report,
boolean status)
Called after the given report has been saved onto the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplyPersister(ReportHistoryServices historyServices,
OrderInfoCache cache)
historyServices - The report history services provider.| Method Detail |
|---|
public void reportSaved(ReportBase report,
boolean status)
ReportSavedListener
reportSaved in interface ReportSavedListenerreport - The report.status - True if saving completed successfully.public void persistReply(TradeMessage msg)
msg - The message.
public OrderInfo addOutgoingOrder(Message msg,
UserID actorID)
msg - The message.actorID - The actor ID.
public Principals getPrincipals(Message inMessage,
boolean isAck)
msg - The message.isAck - True if the request is made for the purposes of
processing an ORS ack.
Principals.UNKNOWN.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||