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 and Description |
---|
BulkOrderCancellationHandler(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 |
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() |
public BulkOrderCancellationHandler(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 onOrderCancel(com.caplin.ret.trapi.fx.order.OrderEvent event)
onOrderCancel
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
public void onOrderCancelPending(com.caplin.ret.trapi.fx.order.OrderEvent event)
onOrderCancelPending
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
public void onOrderCancelFail(com.caplin.ret.trapi.fx.order.OrderErrorEvent errorEvent)
onOrderCancelFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
public void onBulkOrderCancelFail(java.lang.String reason)
onBulkOrderCancelFail
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
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)
onBulkOrderCancelComplete
in interface com.caplin.ret.trapi.fx.order.transaction.bulk.cancel.BulkCancelOrderListener
Copyright © 2019 Caplin Systems.