Class OrderChangingStateResponder

    • 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