Class BulkOrderCancellationHandler

java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderCancellationHandler
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.cancel.BulkCancelOrderListener

public class BulkOrderCancellationHandler 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.cancel.BulkCancelOrderListener
  • 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>
    • onOrderCancel

      public void onOrderCancel(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onOrderCancel in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
    • onOrderCancelPending

      public void onOrderCancelPending(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onOrderCancelPending in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
    • onOrderCancelFail

      public void onOrderCancelFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
      Specified by:
      onOrderCancelFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
    • onBulkOrderCancelFail

      public void onBulkOrderCancelFail(String reason)
      Specified by:
      onBulkOrderCancelFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
    • onBulkOrderCancelComplete

      public void onBulkOrderCancelComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelledOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelPendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> cancelFailedOrders)
      Specified by:
      onBulkOrderCancelComplete in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener