Class EditOpenSentResponder
- 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.EditOpenSentResponder
-
public class EditOpenSentResponder extends BaseErrorResponder<EditStrategyRequest>
A Responder for the Edit Strategy, that can send message from the EditOpenSent state.
-
-
Constructor Summary
Constructors Constructor Description EditOpenSentResponder(EditStrategyRequest request)
Constructs a Responder that can respond from the EditOpenSent state for the EditStrategy trade model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendEditOpenAck(EditOpenAckEvent event)
Sends the ack to notify the client that the request to open a strategy for edit has been received-
Methods inherited from class com.caplin.motif.fx.trading.orders.edit.responder.BaseErrorResponder
sendError
-
-
-
-
Constructor Detail
-
EditOpenSentResponder
public EditOpenSentResponder(EditStrategyRequest request)
Constructs a Responder that can respond from the EditOpenSent state for the EditStrategy trade model.
Please use
EditStrategyRequest.getEditOpenSentResponder()
to retrieve an instance.- Parameters:
request
- The object representing the trade for the edit strategy request, which this responder can send messages for.
-
-
Method Detail
-
sendEditOpenAck
public void sendEditOpenAck(EditOpenAckEvent event) throws com.caplin.trading.TradeException
Sends the ack to notify the client that the request to open a strategy for edit has been received
- Parameters:
event
- the acknowledgement event to send to the client- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-
-