public class EditPendingResponder extends BaseErrorResponder<EditStrategyRequest>
A Responder for Edit Strategy, that can send messages from the EditPending state.
Constructor and Description |
---|
EditPendingResponder(EditStrategyRequest request,
StrategyCache strategyCache)
Constructs a Responder that can respond from the EditPending state
for the EditStrategy trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
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 order
|
sendError
public EditPendingResponder(EditStrategyRequest request, StrategyCache strategyCache)
Constructs a Responder that can respond from the EditPending state for the EditStrategy trade model.
Please use EditStrategyRequest.getEditPendingResponder()
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 sendEditAccept(EditAcceptEvent event) throws com.caplin.trading.TradeException
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
event
- The EditAccept event to send to the clientcom.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.