Class ChangeStateListener

java.lang.Object
com.caplin.motif.fx.ret.orders.trading.ChangeStateListener
All Implemented Interfaces:
OrderChangeActiveStateListener, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>

public class ChangeStateListener extends Object implements OrderChangeActiveStateListener, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
  • Constructor Details

  • Method Details

    • orderChangeActiveStateReceived

      public void orderChangeActiveStateReceived(ChangeActiveState changeActiveState)
      Description copied from interface: OrderChangeActiveStateListener
      Called when the client makes a request to activate an order
      Specified by:
      orderChangeActiveStateReceived in interface OrderChangeActiveStateListener
      Parameters:
      changeActiveState - The object representing the request from the client to change the state of the order to activated.
    • onTradeClosed

      public void onTradeClosed()
      Description copied from interface: OrderChangeActiveStateListener
      Callback for when the trade is closed
      Specified by:
      onTradeClosed in interface OrderChangeActiveStateListener
    • orderCancelWaitReceived

      public void orderCancelWaitReceived(ChangeActiveState activeState)
      Description copied from interface: OrderChangeActiveStateListener
      Called when the client makes a request to cancel the timeout that is usually in place before the backend moves the request to pending.
      Specified by:
      orderCancelWaitReceived in interface OrderChangeActiveStateListener
      Parameters:
      activeState - The object representing the request from the client to change the state of the order to activated.
    • connectionAvailable

      public void connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection connection)
      Specified by:
      connectionAvailable in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
    • connectionRegistrationFailed

      public void connectionRegistrationFailed(String reason)
      Specified by:
      connectionRegistrationFailed in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>