public class TradeAdapter extends TradeAdapter
dataSource
Constructor and Description |
---|
TradeAdapter(com.caplin.datasource.DataSource dataSource)
Deprecated.
|
TradeAdapter(com.caplin.datasource.DataSource dataSource,
ThreadMode threadMode)
Constructs the TradeAdapter that will utilise the specified
DataSource and its configuration for communication with the motif.
|
TradeAdapter(com.caplin.datasource.DataSource dataSource,
ThreadMode threadMode,
Properties properties)
Constructs the TradeAdapter that will utilise the specified
DataSource and its configuration for communication with the motif.
|
Modifier and Type | Method and Description |
---|---|
void |
registerPostAllocationTradeViewListener(SubjectParser<AllocationViewEvent> subjectParser,
PostTradeAllocationViewListener listener)
Registers the listener that will service the request to view the allocations
of an already allocated trade.
|
addTradeChannelSessionListener, addUserSessionListener, getDataSource, registerTradeListenerFactory, removeUserSessionListener
public TradeAdapter(com.caplin.datasource.DataSource dataSource, ThreadMode threadMode) throws IOException
dataSource
- The DataSource that will be used to receive requests for ESP and RFS trades.threadMode
- The thread mode to use for trades being made through the Adapter.IOException
- If an error occurred reading configuration files for the adapter.public TradeAdapter(com.caplin.datasource.DataSource dataSource, ThreadMode threadMode, Properties properties) throws IOException
dataSource
- The DataSource that will be used to receive requests for ESP and RFS trades.threadMode
- The thread mode to use for trades being made through the Adapter.properties
- The properties file to use when creating the TradingProvider
IOException
- If an error occurred reading configuration files for the adapter.@Deprecated public TradeAdapter(com.caplin.datasource.DataSource dataSource) throws IOException
TradeAdapter.TradeAdapter(DataSource, ThreadMode)
dataSource
- The DataSource that will be used to receive requests for ESP and RFS trades.IOException
- If an error occurred reading configuration files for the adapter.public void registerPostAllocationTradeViewListener(SubjectParser<AllocationViewEvent> subjectParser, PostTradeAllocationViewListener listener)
Also registers a parser that will parse the request to a domain specific object.
subjectParser
- The parser that will parse the clients request to view allocations into a domain specific object.listener
- The listener that will be called to service the request to view details of already allocated trades.Copyright © 2020 Caplin Systems.