public class OrderChangingStateResponder extends FXResponder<MotifTrade>
A Responder for the OrderChangeState trade model that can respond from the ChangingState state.
Constructor and Description |
---|
OrderChangingStateResponder(ChangeActiveState trade)
Constructs a Responder that can respond from the ChangingState state
for the OrderChangeState trade model.
|
Modifier and Type | Method and Description |
---|---|
void |
sendChangeStateConfirm(OrderChangeStateConfirmEvent event)
Sends an event to the client informing it that change state request
was successful.
|
void |
sendChangeStatePending(OrderChangeStatePendingEvent event)
Sends an event to the client informing it that the change state request
is being processed by the backend.
|
void |
sendChangeStateReject(OrderChangeStateRejectEvent event)
Sends an event to the client informing it that the change state request
was rejected.
|
sendError, sendReject
public OrderChangingStateResponder(ChangeActiveState trade)
ChangeActiveState.getChangingStateResponder()
to retrieve an instancetrade
- The object representing the trade that the client wants to
change the state of, which this responder can send messages
for.public void sendChangeStateConfirm(OrderChangeStateConfirmEvent event) throws com.caplin.trading.TradeException
event
- The event to notify the client that the change state request was successful.com.caplin.trading.TradeException
- If there was a problem sending the eventpublic void sendChangeStateReject(OrderChangeStateRejectEvent event) throws com.caplin.trading.TradeException
event
- The event to notify the client that the change state request was rejected.com.caplin.trading.TradeException
- If there was a problem sending the eventpublic void sendChangeStatePending(OrderChangeStatePendingEvent event) throws com.caplin.trading.TradeException
event
- The event to notify the client that the change state request is currently
in the backend trading system and pending.com.caplin.trading.TradeException
- If there was a problem sending the eventCopyright © 2015 Caplin Systems.