Class BulkOrderActivationHandler
java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderActivationHandler
- 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.activate.BulkActivateStrategyListener
public class BulkOrderActivationHandler
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.activate.BulkActivateStrategyListener
-
Constructor Summary
ConstructorDescriptionBulkOrderActivationHandler
(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
onBulkStrategyActivateComplete
(List<com.caplin.ret.trapi.fx.order.OrderEvent> activatedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> activatePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> activateFailedOrders) void
onBulkStrategyActivateFail
(String reason) void
onStrategyActivate
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
onStrategyActivateFail
(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) void
onStrategyActivatePending
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
-
Constructor Details
-
BulkOrderActivationHandler
public BulkOrderActivationHandler(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>
-
onStrategyActivate
public void onStrategyActivate(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onStrategyActivate
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
onStrategyActivatePending
public void onStrategyActivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onStrategyActivatePending
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
onStrategyActivateFail
public void onStrategyActivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) - Specified by:
onStrategyActivateFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
onBulkStrategyActivateFail
- Specified by:
onBulkStrategyActivateFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
onBulkStrategyActivateComplete
public void onBulkStrategyActivateComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> activatedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> activatePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> activateFailedOrders) - Specified by:
onBulkStrategyActivateComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-