Class ClientCloseSentResponder
java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.orders.edit.responder.BaseErrorResponder<EditStrategyRequest>
com.caplin.motif.fx.trading.orders.edit.responder.ClientCloseSentResponder
A Responder for Edit Strategy, that can send messages from the ClientCloseSent state.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a Responder that can respond from the ClientCloseSent state for the EditStrategy trade model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends an ack to notify the client that the client close request to complete the edit order has been received.Methods inherited from class com.caplin.motif.fx.trading.orders.edit.responder.BaseErrorResponder
sendError
-
Constructor Details
-
ClientCloseSentResponder
Constructs a Responder that can respond from the ClientCloseSent state for the EditStrategy trade model.
Please use
EditStrategyRequest.getClientCloseSentResponder()
to retrieve an instance.- Parameters:
request
- The object representing the trade for the edit strategy request, which this responder can send messages for.
-
-
Method Details
-
sendClientCloseAck
Sends an ack to notify the client that the client close request to complete the edit order has been received.
Typically if any strategies or orders have been locked for edit, these locks should have been removed.
- Parameters:
event
- The acknowledgement event to send to the client- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-