public class FixedOrderConnectionRequestRouter extends java.lang.Object implements OrderConnectionRequestRouter
OrderConnectionRequestRouter
that routes orders to the default connection.OrderConnectionRequestRouter.Context
Constructor and Description |
---|
FixedOrderConnectionRequestRouter() |
Modifier and Type | Method and Description |
---|---|
com.caplin.ret.trapi.connection.pool.ConnectionPool<com.caplin.ret.trapi.connection.OrderTradingConnection> |
getConnectionPool() |
java.util.Map<java.lang.String,java.util.List<BulkOrder>> |
groupOrdersByConnection(java.util.List<BulkOrder> bulkOrders)
This creates a partition based on the original list.
|
void |
initialise(OrderConnectionRequestRouter.Context context)
This notifies the ConnectionRequestRouter that it is about to be loaded.
|
void |
requestConnection(java.lang.String connectionPoolKey,
com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> listener)
This routes a connection request to a connection from the
ConnectionPool
You should use this method to perform any matching based on the request parameters to the most appropriate
connection. |
void |
requestConnection(java.lang.String retClientName,
java.lang.String assetClass,
com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> listener)
This routes a connection request to a connection from the
ConnectionPool
You should use this method to perform any matching based on the request parameters to the most appropriate
connection. |
public void initialise(OrderConnectionRequestRouter.Context context)
OrderConnectionRequestRouter
initialise
in interface OrderConnectionRequestRouter
public void requestConnection(java.lang.String retClientName, java.lang.String assetClass, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> listener)
OrderConnectionRequestRouter
ConnectionPool
You should use this method to perform any matching based on the request parameters to the most appropriate
connection.requestConnection
in interface OrderConnectionRequestRouter
public void requestConnection(java.lang.String connectionPoolKey, com.caplin.ret.trapi.connection.pool.ConnectionPoolListener<com.caplin.ret.trapi.connection.OrderTradingConnection> listener)
OrderConnectionRequestRouter
ConnectionPool
You should use this method to perform any matching based on the request parameters to the most appropriate
connection.requestConnection
in interface OrderConnectionRequestRouter
public java.util.Map<java.lang.String,java.util.List<BulkOrder>> groupOrdersByConnection(java.util.List<BulkOrder> bulkOrders)
OrderConnectionRequestRouter
groupOrdersByConnection
in interface OrderConnectionRequestRouter
public com.caplin.ret.trapi.connection.pool.ConnectionPool<com.caplin.ret.trapi.connection.OrderTradingConnection> getConnectionPool()
getConnectionPool
in interface OrderConnectionRequestRouter
Copyright © 2016 Caplin Systems.