public class OrderCancelSentResponder extends FXResponder<MotifTrade>
A Responder for canceling limit orders that can send messages from the CancelSent state.
Constructor and Description |
---|
OrderCancelSentResponder(CancelRequest trade)
Constructs a Responder that can respond from the CancelSent state
for the OrderCancel trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
sendCancelAck(OrderCancelAckEvent event)
Sends an acknowledgement message to notify the client that the request
to cancel the trade has been received by the backend.
|
sendError, sendReject
public OrderCancelSentResponder(CancelRequest trade)
CancelRequest.getCancelSentResponder()
to retrieve an instance.trade
- The object representing the trade that the client wants to
cancel, which this responder can send messages for.public void sendCancelAck(OrderCancelAckEvent event) throws com.caplin.trading.TradeException
event
- The acknowledgement event to send to the client.com.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.