Class FXResponder<T extends UserTrade>

    • Constructor Detail

      • FXResponder

        public FXResponder​(T trade)
        Constructs an Responder that can send the Error and Reject events for FX related trade models.
        Parameters:
        trade - The trade this responder will send messages for
    • Method Detail

      • sendError

        public void sendError​(ErrorEvent<T> event)
                       throws com.caplin.trading.TradeException
        Sends a message to the frontend to denote that an error has occurred during the trade workflow.
        Parameters:
        event - The error event to send.
        Throws:
        com.caplin.trading.TradeException - if there was a problem sending the event
      • sendReject

        public void sendReject​(RejectEvent<T> event)
                        throws com.caplin.trading.TradeException
        Sends a message to the frontend to denote that the backend has rejected the trade sometime during the trade workflow
        Parameters:
        event - The reject event to send.
        Throws:
        com.caplin.trading.TradeException - if there was a problem sending the event