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 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.cancel.BulkCancelOrderListener
-
-
Constructor Summary
Constructors Constructor Description BulkOrderCancellationHandler(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
onBulkOrderCancelComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelledOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelPendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> cancelFailedOrders)
void
onBulkOrderCancelFail(java.lang.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
performBulkAction()
-
-
-
Constructor Detail
-
BulkOrderCancellationHandler
public BulkOrderCancellationHandler(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>
-
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
public void onBulkOrderCancelFail(java.lang.String reason)
- Specified by:
onBulkOrderCancelFail
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
onBulkOrderCancelComplete
public void onBulkOrderCancelComplete(java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelledOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderEvent> cancelPendingOrders, java.util.List<com.caplin.ret.trapi.fx.order.OrderErrorEvent> cancelFailedOrders)
- Specified by:
onBulkOrderCancelComplete
in interfacecom.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
-
-