Class EditPendingResponder
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.EditPendingResponder
A Responder for Edit Strategy, that can send messages from the EditPending state.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEditPendingResponder
(EditStrategyRequest request, StrategyCache strategyCache) Constructs a Responder that can respond from the EditPending state for the EditStrategy trade model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendEditAccept
(EditAcceptEvent event) Sends the EditAccept event to notify the client that the request to open a strategy/order for edit has been processed and that they may begin editing the orderMethods inherited from class com.caplin.motif.fx.trading.orders.edit.responder.BaseErrorResponder
sendError
-
Constructor Details
-
EditPendingResponder
Constructs a Responder that can respond from the EditPending state for the EditStrategy trade model.
Please use
EditStrategyRequest.getEditPendingResponder()
to retrieve an instance.- Parameters:
request
- The object representing the trade for the edit strategy request, which this responder can send messages for.strategyCache
- A cache for storing the most recent version of the Strategy reported by the server.
-
-
Method Details
-
sendEditAccept
Sends the EditAccept event to notify the client that the request to open a strategy/order for edit has been processed and that they may begin editing the order
- Parameters:
event
- The EditAccept event to send to the client- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-