Class FXResponder<T extends UserTrade>

    • Constructor Summary

      Constructors 
      Constructor Description
      FXResponder​(T trade)
      Constructs an Responder that can send the Error and Reject events for FX related trade models.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sendError​(ErrorEvent<T> event)
      Sends a message to the frontend to denote that an error has occurred during the trade workflow.
      void sendReject​(RejectEvent<T> event)
      Sends a message to the frontend to denote that the backend has rejected the trade sometime during the trade workflow
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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