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 Summary
ConstructorDescriptionBulkOrderDeactivationHandler
(String connectionPoolKey, List<BulkOrder> bulkOrders, OrderConnectionRequestRouter connectionRequestRouter, NotificationManager notificationManager, String requestId, AuditLoggerManager.AuditLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
connectionAvailable
(com.caplin.ret.trapi.connection.OrderTradingConnection connection) void
connectionRegistrationFailed
(String reason) 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) void
onBulkStrategyDeactivateFail
(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
-
Constructor Details
-
BulkOrderDeactivationHandler
public BulkOrderDeactivationHandler(String connectionPoolKey, List<BulkOrder> bulkOrders, OrderConnectionRequestRouter connectionRequestRouter, NotificationManager notificationManager, String requestId, AuditLoggerManager.AuditLogger logger)
-
-
Method Details
-
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
- 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
- Specified by:
onBulkStrategyDeactivateFail
in interfacecom.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 interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
-