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 public class OrderChangingStateResponder extends FXResponder<UserTrade>
Deprecated.A Responder for the OrderChangeState trade model that can respond from the ChangingState state.
-
-
Constructor Summary
Constructors Constructor Description OrderChangingStateResponder(ChangeActiveState trade)
Deprecated.Constructs a Responder that can respond from the ChangingState state for the OrderChangeState trade model.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
sendChangeStateConfirm(OrderChangeStateConfirmEvent event)
Deprecated.Sends an event to the client informing it that change state request was successful.void
sendChangeStatePending(OrderChangeStatePendingEvent event)
Deprecated.Sends an event to the client informing it that the change state request is being processed by the backend.void
sendChangeStateReject(OrderChangeStateRejectEvent event)
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 Detail
-
OrderChangingStateResponder
public OrderChangingStateResponder(ChangeActiveState trade)
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 Detail
-
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
-
-