Class BulkOrderDeactivationHandler

java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderDeactivationHandler
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.deactivate.BulkDeactivateStrategyListener

public class BulkOrderDeactivationHandler 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.deactivate.BulkDeactivateStrategyListener
  • 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>
    • onStrategyDeactivate

      public void onStrategyDeactivate(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onStrategyDeactivate in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
    • onStrategyDeactivatePending

      public void onStrategyDeactivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onStrategyDeactivatePending in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
    • onStrategyDeactivateFail

      public void onStrategyDeactivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
      Specified by:
      onStrategyDeactivateFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
    • onBulkStrategyDeactivateFail

      public void onBulkStrategyDeactivateFail(String reason)
      Specified by:
      onBulkStrategyDeactivateFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
    • onBulkStrategyDeactivateComplete

      public void onBulkStrategyDeactivateComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deactivateFailedOrders)
      Specified by:
      onBulkStrategyDeactivateComplete in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener