Class BulkOrderCancellationHandler
java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderCancellationHandler
- 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.cancel.BulkCancelOrderListener
public class BulkOrderCancellationHandler
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.cancel.BulkCancelOrderListener
-
Constructor Summary
ConstructorDescriptionBulkOrderCancellationHandler
(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
onBulkOrderCancelComplete
(List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelledOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelPendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> cancelFailedOrders) void
onBulkOrderCancelFail
(String reason) void
onOrderCancel
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
onOrderCancelFail
(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) void
onOrderCancelPending
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
-
Constructor Details
-
BulkOrderCancellationHandler
public BulkOrderCancellationHandler(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>
-
onOrderCancel
public void onOrderCancel(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onOrderCancel
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
onOrderCancelPending
public void onOrderCancelPending(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onOrderCancelPending
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
onOrderCancelFail
public void onOrderCancelFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) - Specified by:
onOrderCancelFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
onBulkOrderCancelFail
- Specified by:
onBulkOrderCancelFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
onBulkOrderCancelComplete
public void onBulkOrderCancelComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelledOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelPendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> cancelFailedOrders) - Specified by:
onBulkOrderCancelComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-