public class EditableResponder extends BaseErrorResponder<EditStrategyRequest>
A Responder for Edit Strategy, that can send message from the Editable state.
Constructor and Description |
---|
EditableResponder(EditStrategyRequest request,
com.caplin.motif.fx.trading.orders.edit.StrategyCache strategyCache)
Constructs a Responder that can respond from the
|
Modifier and Type | Method and Description |
---|---|
void |
sendRefresh(RefreshEvent event)
Sends a refresh event notifying the client that the strategy that
is currently being edited has changed
|
sendError
public EditableResponder(EditStrategyRequest request, com.caplin.motif.fx.trading.orders.edit.StrategyCache strategyCache)
Constructs a Responder that can respond from the
Editable
state for the EditStrategy trade model.Please use EditStrategyRequest.getEditableResponder()
to retrieve an instance
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.public void sendRefresh(RefreshEvent event) throws com.caplin.trading.TradeException
Sends a refresh event notifying the client that the strategy that is currently being edited has changed
event
- The refresh event to send to the clientcom.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.