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 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.activate.BulkActivateStrategyListener
-
-
Constructor Summary
Constructors Constructor Description BulkOrderActivationHandler(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
onBulkStrategyActivateComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> activatedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> activatePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> activateFailedOrders)
void
onBulkStrategyActivateFail(java.lang.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
performBulkAction()
-
-
-
Constructor Detail
-
BulkOrderActivationHandler
public BulkOrderActivationHandler(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>
-
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
public void onBulkStrategyActivateFail(java.lang.String reason)
- Specified by:
onBulkStrategyActivateFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
onBulkStrategyActivateComplete
public void onBulkStrategyActivateComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> activatedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> activatePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> activateFailedOrders)
- Specified by:
onBulkStrategyActivateComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
-
-