Class BulkOrderDeletionHandler
java.lang.Object
com.caplin.motif.fx.ret.orders.bulkaction.handlers.BulkOrderDeletionHandler
- 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.delete.BulkDeleteOrderListener
public class BulkOrderDeletionHandler
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.delete.BulkDeleteOrderListener
-
Constructor Summary
ConstructorDescriptionBulkOrderDeletionHandler
(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
onBulkOrderDeleteComplete
(List<com.caplin.ret.trapi.fx.order.OrderEvent> deletedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> deletePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deleteFailedOrders) void
onBulkOrderDeleteFail
(String reason) void
onOrderDelete
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
onOrderDeleteFail
(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) void
onOrderDeletePending
(com.caplin.ret.trapi.fx.order.OrderEvent event) void
-
Constructor Details
-
BulkOrderDeletionHandler
public BulkOrderDeletionHandler(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>
-
onOrderDelete
public void onOrderDelete(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onOrderDelete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
onOrderDeletePending
public void onOrderDeletePending(com.caplin.ret.trapi.fx.order.OrderEvent event) - Specified by:
onOrderDeletePending
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
onOrderDeleteFail
public void onOrderDeleteFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent) - Specified by:
onOrderDeleteFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
onBulkOrderDeleteFail
- Specified by:
onBulkOrderDeleteFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
onBulkOrderDeleteComplete
public void onBulkOrderDeleteComplete(List<com.caplin.ret.trapi.fx.order.OrderEvent> deletedOrders, List<com.caplin.ret.trapi.fx.order.OrderEvent> deletePendingOrders, List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deleteFailedOrders) - Specified by:
onBulkOrderDeleteComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-