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 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.delete.BulkDeleteOrderListener
-
-
Constructor Summary
Constructors Constructor Description BulkOrderDeletionHandler(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
onBulkOrderDeleteComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deletedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deletePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deleteFailedOrders)
void
onBulkOrderDeleteFail(java.lang.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
performBulkAction()
-
-
-
Constructor Detail
-
BulkOrderDeletionHandler
public BulkOrderDeletionHandler(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>
-
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
public void onBulkOrderDeleteFail(java.lang.String reason)
- Specified by:
onBulkOrderDeleteFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
onBulkOrderDeleteComplete
public void onBulkOrderDeleteComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deletedOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> deletePendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> deleteFailedOrders)
- Specified by:
onBulkOrderDeleteComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.delete.BulkDeleteOrderListener
-
-