Class UserStrategyDetailsListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onError​(java.lang.String error)
      Signals an error on the subscription.
      void onUpdate​(com.caplin.motif.fx.trading.orders.details.Strategy strategy, com.caplin.ret.trapi.fx.order.strategy.StrategyTree strategyTree)
      Sends a strategy update to the subscription.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserStrategyDetailsListener

        public UserStrategyDetailsListener​(StrategyDetailsListener wrappedListener,
                                           OrderPermission permission,
                                           com.caplin.ret.trapi.concurrent.executor.SharedExecutorService<java.util.concurrent.ExecutorService> serialExecutor)
    • Method Detail

      • onError

        public void onError​(java.lang.String error)
        Description copied from interface: StrategyDetailsListener

        Signals an error on the subscription.

        Errors do NOT signal that the subscription has ended. Subscribers should still remove their listeners.
        Specified by:
        onError in interface StrategyDetailsListener
        Parameters:
        error - The reason for the error.
      • onUpdate

        public void onUpdate​(com.caplin.motif.fx.trading.orders.details.Strategy strategy,
                             com.caplin.ret.trapi.fx.order.strategy.StrategyTree strategyTree)
        Description copied from interface: StrategyDetailsListener
        Sends a strategy update to the subscription.
        Specified by:
        onUpdate in interface StrategyDetailsListener
        Parameters:
        strategy - The updated Strategy.
        strategyTree - The latest StrategyTree that was used to produce the Strategy.