Class BulkOrderActivationHandler

java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderActivationHandler
All Implemented Interfaces:
BulkActionOrderTransactionHandler, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>, com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener

public class BulkOrderActivationHandler extends Object implements BulkActionOrderTransactionHandler, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>, com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
  • Constructor Details

  • Method Details

    • performBulkAction

      public void performBulkAction()
      Specified by:
      performBulkAction in interface BulkActionOrderTransactionHandler
    • 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>
    • onStrategyActivate

      public void onStrategyActivate(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onStrategyActivate in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
    • onStrategyActivatePending

      public void onStrategyActivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onStrategyActivatePending in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
    • onStrategyActivateFail

      public void onStrategyActivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
      Specified by:
      onStrategyActivateFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
    • onBulkStrategyActivateFail

      public void onBulkStrategyActivateFail(String reason)
      Specified by:
      onBulkStrategyActivateFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
    • onBulkStrategyActivateComplete

      public void onBulkStrategyActivateComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> activatedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> activatePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> activateFailedOrders)
      Specified by:
      onBulkStrategyActivateComplete in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener