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 java.lang.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 Summary
Constructors Constructor Description BulkOrderDeactivationHandler(java.lang.String connectionPoolKey, java.util.List<BulkOrder> bulkOrders, OrderConnectionRequestRouter connectionRequestRouter, NotificationManager notificationManager, java.lang.String requestId, AuditLoggerManager.AuditLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection connection)
void
connectionRegistrationFailed(java.lang.String reason)
void
onBulkStrategyDeactivateComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deactivateFailedOrders)
void
onBulkStrategyDeactivateFail(java.lang.String reason)
void
onStrategyDeactivate(com.caplin.ret.trapi.fx.order.OrderEvent event)
void
onStrategyDeactivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
void
onStrategyDeactivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
void
performBulkAction()
-
-
-
Constructor Detail
-
BulkOrderDeactivationHandler
public BulkOrderDeactivationHandler(java.lang.String connectionPoolKey, java.util.List<BulkOrder> bulkOrders, OrderConnectionRequestRouter connectionRequestRouter, NotificationManager notificationManager, java.lang.String requestId, AuditLoggerManager.AuditLogger logger)
-
-
Method Detail
-
performBulkAction
public void performBulkAction()
- Specified by:
performBulkAction
in interfaceBulkActionOrderTransactionHandler
-
connectionAvailable
public void connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection connection)
- Specified by:
connectionAvailable
in interfacecom.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
-
connectionRegistrationFailed
public void connectionRegistrationFailed(java.lang.String reason)
- Specified by:
connectionRegistrationFailed
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
-
onBulkStrategyDeactivateFail
public void onBulkStrategyDeactivateFail(java.lang.String reason)
- Specified by:
onBulkStrategyDeactivateFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
-
onBulkStrategyDeactivateComplete
public void onBulkStrategyDeactivateComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deactivatePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deactivateFailedOrders)
- Specified by:
onBulkStrategyDeactivateComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
-
-