Class PricingDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>
java.lang.Object
com.caplin.motif.fx.ret.pricing.provider.PricingDataProvider<T>
- All Implemented Interfaces:
com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
- Direct Known Subclasses:
FXPricingDataProvider
,MetalPricingDataProvider
public abstract class PricingDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>
extends Object
implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
-
Constructor Summary
ConstructorDescriptionPricingDataProvider
(List<com.caplin.ret.trapi.rates.RatesService> ratesManagers, com.caplin.ret.trapi.admin.AdminService serviceManager, org.slf4j.Logger logger, int serialExecutorPoolSize, ExecutorService executorService, String adapterName) -
Method Summary
Modifier and TypeMethodDescriptionabstract com.caplin.motif.fx.rates.FXQuotePublisher
abstract com.caplin.ret.trapi.rates.SubscriptionRequest
createSubscriptionRequest
(T subjectInfo) abstract String
getDisplayedGFA
(String gfa, String currencyPair, String unit) void
void
onDiscard
(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo) void
onRequest
(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)
-
Constructor Details
-
PricingDataProvider
public PricingDataProvider(List<com.caplin.ret.trapi.rates.RatesService> ratesManagers, com.caplin.ret.trapi.admin.AdminService serviceManager, org.slf4j.Logger logger, int serialExecutorPoolSize, ExecutorService executorService, String adapterName)
-
-
Method Details
-
createQuotePublisher
public abstract com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher() -
createSubscriptionRequest
public abstract com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest(T subjectInfo) throws Exception - Throws:
Exception
-
getDisplayedGFA
-
initialise
public void initialise() -
onRequest
public void onRequest(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo) - Specified by:
onRequest
in interfacecom.caplin.motif.datasource.CachedDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>
-
onDiscard
public void onDiscard(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo) - Specified by:
onDiscard
in interfacecom.caplin.motif.datasource.CachedDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>
-