public class OrderCancelingResponder extends FXResponder<MotifTrade>
A Responder for canceling limit orders that can send messages from the Canceling state
Constructor and Description |
---|
OrderCancelingResponder(CancelRequest trade)
Constructs a Responder that can respond from the Canceling state
for the OrderCancel trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
sendCancelConfirm(OrderCancelConfirmEvent event)
Sends the cancel confirm event notifying the client that the cancelation
has been successfully processed by the backend trading system,
|
void |
sendCancelPending(OrderCancelPendingEvent event)
Sends the cancel pending message event notifying the client that the cancel
request is being processed by the backend trading system.
|
void |
sendCancelReject(OrderCancelRejectEvent event)
Sends the cancel reject message event notifying the client that the cancelation
has been rejected by the backend trading system.
|
sendError, sendReject
public OrderCancelingResponder(CancelRequest trade)
CancelRequest.getCancelingResponder()
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 sendCancelConfirm(OrderCancelConfirmEvent event) throws com.caplin.trading.TradeException
event
- The confirmation event to send to the clientcom.caplin.trading.TradeException
- If there was a problem sending the eventpublic void sendCancelReject(OrderCancelRejectEvent event) throws com.caplin.trading.TradeException
event
- The reject event to send to the clientcom.caplin.trading.TradeException
- If there was a problem sending the eventpublic void sendCancelPending(OrderCancelPendingEvent event) throws com.caplin.trading.TradeException
event
- The pending event to send to the client.com.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.