Class OrderChangingStateResponder
java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<UserTrade>
com.caplin.motif.fx.trading.orders.activestatechange.responder.OrderChangingStateResponder
Deprecated.
A Responder for the OrderChangeState trade model that can respond from the ChangingState state.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a Responder that can respond from the ChangingState state for the OrderChangeState trade model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Sends an event to the client informing it that change state request was successful.void
Deprecated.Sends an event to the client informing it that the change state request is being processed by the backend.void
Deprecated.Sends an event to the client informing it that the change state request was rejected.Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
Constructor Details
-
OrderChangingStateResponder
Deprecated.Constructs a Responder that can respond from the ChangingState state for the OrderChangeState trade model.Please use
ChangeActiveState.getChangingStateResponder()
to retrieve an instance- Parameters:
trade
- The object representing the trade that the client wants to change the state of, which this responder can send messages for.
-
-
Method Details
-
sendChangeStateConfirm
public void sendChangeStateConfirm(OrderChangeStateConfirmEvent event) throws com.caplin.trading.TradeException Deprecated.Sends an event to the client informing it that change state request was successful.- Parameters:
event
- The event to notify the client that the change state request was successful.- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-
sendChangeStateReject
public void sendChangeStateReject(OrderChangeStateRejectEvent event) throws com.caplin.trading.TradeException Deprecated.Sends an event to the client informing it that the change state request was rejected.- Parameters:
event
- The event to notify the client that the change state request was rejected.- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-
sendChangeStatePending
public void sendChangeStatePending(OrderChangeStatePendingEvent event) throws com.caplin.trading.TradeException Deprecated.Sends an event to the client informing it that the change state request is being processed by the backend.- Parameters:
event
- The event to notify the client that the change state request is currently in the backend trading system and pending.- Throws:
com.caplin.trading.TradeException
- If there was a problem sending the event
-