Package com.caplin.motif.mm.trading
Class MMTradeAdapter
java.lang.Object
com.caplin.motif.datasource.CachedAdapter
com.caplin.motif.mm.trading.MMTradeAdapter
-
Field Summary
Fields inherited from class com.caplin.motif.datasource.CachedAdapter
dataSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters a factory that will listen to MMCapitalIncrease Trade workflows initiated from the client.voidregisterCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig, MMCurrencyConfigSubjectInfo> provider) Registers a provider that is capable of responding to money markets currency config requests<T extends SubjectInfo>
voidregisterCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig, T> provider, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser) Used to register a provider that is capable of responding to money markets currency config requests on non-standard subjects<T extends TradeSubjectInfo>
voidregisterMMPostTradeHistoryProvider(CachedObjectProvider<PostTradeHistory, TradeSubjectInfo> provider) Registers a provider that is capable of responding to money markets post trade history requests.<T extends TradeSubjectInfo>
voidregisterMMSalesPostTradeHistoryProvider(CachedObjectProvider<PostTradeHistory, TradeSubjectInfo> provider) Registers a provider that is capable of responding to money markets sales post trade history requests.voidRegisters a factory that will listen to Money Markets Post Trade workflows initiated from the client.voidRegisters a factory that will listen to Money Markets RFS Trade workflows initiated from the client.voidRegisters a factory that will listen to MMSalesIntervention Trade workflows initiated from the client.voidRegisters a provider that is capable of responding to Sales trade confirmation requests.voidRegisters a factory that will listen to MMSettlement Trade workflows initiated from the client.<T extends TradeSubjectInfo>
voidregisterTradeConfirmationProvider(com.caplin.datasource.namespace.Namespace namespace, CachedMessageProvider<T> provider, SubjectParser<T> subjectParser) Registers a provider that is capable of responding to trade confirmation requests.voidRegisters a provider that is capable of responding to trade confirmation requests.voidregisterTradeConfirmationProvider(String namespace, CachedMessageProvider<TradeSubjectInfo> provider) Registers a provider that is capable of responding to trade confirmation requests.<T extends TradeSubjectInfo>
voidregisterTradeConfirmationProvider(String namespace, CachedMessageProvider<T> provider, SubjectParser<T> subjectParser) Registers a provider that is capable of responding to trade confirmation requests.Methods inherited from class com.caplin.motif.datasource.CachedAdapter
createCachedPublisher, createCachedPublisher
-
Constructor Details
-
MMTradeAdapter
-
-
Method Details
-
registerRFSTradeListenerFactory
Registers a factory that will listen to Money Markets RFS Trade workflows initiated from the client.- Parameters:
factory- the factory that will be asked to create the MMRFSTradeListener
-
registerSalesInterventionTradeListenerFactory
public void registerSalesInterventionTradeListenerFactory(MMSalesInterventionTradeListenerFactory factory) Registers a factory that will listen to MMSalesIntervention Trade workflows initiated from the client.- Parameters:
factory- the factory that will be asked to create the MMInterventionTradeListener
-
registerCapitalIncreaseTradeListenerFactory
public void registerCapitalIncreaseTradeListenerFactory(MMCapitalIncreaseTradeListenerFactory factory) Registers a factory that will listen to MMCapitalIncrease Trade workflows initiated from the client.- Parameters:
factory- the factory that will be asked to create the MMCapitalIncreaseTradeListener
-
registerPostTradeTradeListenerFactory
Registers a factory that will listen to Money Markets Post Trade workflows initiated from the client.- Parameters:
factory- the factory that will be asked to create the MMPostTradeTradeListener
-
registerSettlementTradeListenerFactory
Registers a factory that will listen to MMSettlement Trade workflows initiated from the client.- Parameters:
factory- the factory that will be asked to create the MMSettlementTradeListener
-
registerMMPostTradeHistoryProvider
public <T extends TradeSubjectInfo> void registerMMPostTradeHistoryProvider(CachedObjectProvider<PostTradeHistory, TradeSubjectInfo> provider) Registers a provider that is capable of responding to money markets post trade history requests.- Parameters:
provider- the CachingDataProvider that will receive the post trade history requests
-
registerMMSalesPostTradeHistoryProvider
public <T extends TradeSubjectInfo> void registerMMSalesPostTradeHistoryProvider(CachedObjectProvider<PostTradeHistory, TradeSubjectInfo> provider) Registers a provider that is capable of responding to money markets sales post trade history requests.- Parameters:
provider- the CachingDataProvider that will receive the post trade history requests
-
registerCurrencyConfigProvider
public void registerCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig, MMCurrencyConfigSubjectInfo> provider) Registers a provider that is capable of responding to money markets currency config requests- Parameters:
provider- The JsonDataProvider that will receive the money markets currency config requests
-
registerCurrencyConfigProvider
public <T extends SubjectInfo> void registerCurrencyConfigProvider(CachedObjectProvider<MMCurrencyConfig, T> provider, com.caplin.datasource.namespace.Namespace namespace, SubjectParser<T> subjectParser) Used to register a provider that is capable of responding to money markets currency config requests on non-standard subjects- Parameters:
provider- The JsonDataProvider that will receive the money markets currency config requestsnamespace- A namespace that matches the format of your custom subjectssubjectParser- A parser that will turn the requested subject into your own custom subclass ofSubjectInfo
-
registerSalesTradeConfirmationProvider
public void registerSalesTradeConfirmationProvider(CachedMessageProvider<TradeSubjectInfo> provider) Registers a provider that is capable of responding to Sales trade confirmation requests.- Parameters:
provider- the CachedMessageProvider that will receive the Sales trade confirmation requests
-
registerTradeConfirmationProvider
Registers a provider that is capable of responding to trade confirmation requests.- Parameters:
provider- the CachedMessageProvider that will receive the trade confirmation requests
-
registerTradeConfirmationProvider
public void registerTradeConfirmationProvider(String namespace, CachedMessageProvider<TradeSubjectInfo> provider) Registers a provider that is capable of responding to trade confirmation requests.- Parameters:
namespace- the namespace to register the provider on, defaults are defined inTradeSubjectNamespacing.DefaultNamespacesprovider- the CachedMessageProvider that will receive the trade confirmation requests
-
registerTradeConfirmationProvider
public <T extends TradeSubjectInfo> void registerTradeConfirmationProvider(String namespace, CachedMessageProvider<T> provider, SubjectParser<T> subjectParser) Registers a provider that is capable of responding to trade confirmation requests.- Parameters:
namespace- the namespace to register the provider on, defaults are defined inTradeSubjectNamespacing.DefaultNamespacesprovider- the CachedMessageProvider that will receive the trade confirmation requestssubjectParser- the parser that will parse trade confirmation requests into an object representation of the request
-
registerTradeConfirmationProvider
public <T extends TradeSubjectInfo> void registerTradeConfirmationProvider(com.caplin.datasource.namespace.Namespace namespace, CachedMessageProvider<T> provider, SubjectParser<T> subjectParser) Registers a provider that is capable of responding to trade confirmation requests.- Parameters:
namespace- the namespace to register the provider on, defaults are defined inTradeSubjectNamespacing.DefaultNamespacesprovider- the CachedMessageProvider that will receive the trade confirmation requestssubjectParser- the parser that will parse trade confirmation requests into an object representation of the request
-