Package com.caplin.motif.fx.trading
Class FXResponder<T extends UserTrade>
java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<T>
- Type Parameters:
T- extendsUserTradewhich contains the basic capabilities that allow it to create and send trade events.
- Direct Known Subclasses:
BlockTradeClientCloseSentResponder,BlockTradeExecuteSentResponder,BlockTradeExpiredResponder,BlockTradeQuoteResponder,BlockTradeSubmittedResponder,BulkOrderActionProcessingResponder,BulkOrderActionSentResponder,ClientCloseSentResponder,OrderCancelingResponder,OrderCancelSentResponder,OrderChangeStateSentResponder,OrderChangingStateResponder,OrderPendingAcceptResponder,OrderQueuedResponder,OrderSubmittedResponder,PendingAllocationResponder,QueuedResponder,SavingResponder,SubmittedResponder
Base class for FX Related responders that wish to send error and reject events
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFXResponder(T trade) Constructs an Responder that can send the Error and Reject events for FX related trade models. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendError(ErrorEvent<T> event) Sends a message to the frontend to denote that an error has occurred during the trade workflow.voidsendReject(RejectEvent<T> event) Sends a message to the frontend to denote that the backend has rejected the trade sometime during the trade workflow
-
Constructor Details
-
FXResponder
Constructs an Responder that can send the Error and Reject events for FX related trade models.- Parameters:
trade- The trade this responder will send messages for
-
-
Method Details
-
sendError
Sends a message to the frontend to denote that an error has occurred during the trade workflow.- Parameters:
event- The error event to send.- Throws:
com.caplin.trading.TradeException- if there was a problem sending the event
-
sendReject
Sends a message to the frontend to denote that the backend has rejected the trade sometime during the trade workflow- Parameters:
event- The reject event to send.- Throws:
com.caplin.trading.TradeException- if there was a problem sending the event
-