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 and Description |
---|
BulkOrderActivationHandler(java.lang.String connectionPoolKey,
java.util.List<BulkOrder> bulkOrders,
OrderConnectionRequestRouter connectionRequestRouter,
NotificationManager notificationManager,
java.lang.String requestId,
AuditLoggerManager.AuditLogger logger) |
Modifier and Type | Method and 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() |
public BulkOrderActivationHandler(java.lang.String connectionPoolKey, java.util.List<BulkOrder> bulkOrders, OrderConnectionRequestRouter connectionRequestRouter, NotificationManager notificationManager, java.lang.String requestId, AuditLoggerManager.AuditLogger logger)
public void performBulkAction()
performBulkAction
in interface BulkActionOrderTransactionHandler
public void connectionAvailable(com.caplin.ret.trapi.connection.OrderTradingConnection connection)
connectionAvailable
in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
public void connectionRegistrationFailed(java.lang.String reason)
connectionRegistrationFailed
in interface com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection>
public void onStrategyActivate(com.caplin.ret.trapi.fx.order.OrderEvent event)
onStrategyActivate
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
public void onStrategyActivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
onStrategyActivatePending
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
public void onStrategyActivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
onStrategyActivateFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
public void onBulkStrategyActivateFail(java.lang.String reason)
onBulkStrategyActivateFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
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)
onBulkStrategyActivateComplete
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.activate.BulkActivateStrategyListener
Copyright © 2016 Caplin Systems.