Class BulkOrderDeletionHandler

java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderDeletionHandler
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.delete.BulkDeleteOrderListener

public class BulkOrderDeletionHandler 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.delete.BulkDeleteOrderListener
  • 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>
    • onOrderDelete

      public void onOrderDelete(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onOrderDelete in interface com.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
    • onOrderDeletePending

      public void onOrderDeletePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
      Specified by:
      onOrderDeletePending in interface com.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
    • onOrderDeleteFail

      public void onOrderDeleteFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
      Specified by:
      onOrderDeleteFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
    • onBulkOrderDeleteFail

      public void onBulkOrderDeleteFail(String reason)
      Specified by:
      onBulkOrderDeleteFail in interface com.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
    • onBulkOrderDeleteComplete

      public void onBulkOrderDeleteComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> deletedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> deletePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deleteFailedOrders)
      Specified by:
      onBulkOrderDeleteComplete in interface com.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener