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 and Description |
---|
BulkOrderDeactivationHandler(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 |
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() |
public BulkOrderDeactivationHandler(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 onStrategyDeactivate(com.caplin.ret.trapi.fx.order.OrderEvent event)
onStrategyDeactivate
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
public void onStrategyDeactivatePending(com.caplin.ret.trapi.fx.order.OrderEvent event)
onStrategyDeactivatePending
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
public void onStrategyDeactivateFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
onStrategyDeactivateFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
public void onBulkStrategyDeactivateFail(java.lang.String reason)
onBulkStrategyDeactivateFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
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)
onBulkStrategyDeactivateComplete
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.deactivate.BulkDeactivateStrategyListener
Copyright © 2016 Caplin Systems.