Class PricingDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>

  • 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 java.lang.Object
    implements com.caplin.motif.datasource.CachedDataProvider<com.caplin.motif.fx.rates.RateSubjectInfo>
    • Constructor Summary

      Constructors 
      Constructor Description
      PricingDataProvider​(java.util.List<com.caplin.ret.trapi.rates.RatesService> ratesManagers, com.caplin.ret.trapi.admin.AdminService serviceManager, org.slf4j.Logger logger, int serialExecutorPoolSize, java.util.concurrent.ExecutorService executorService, java.lang.String adapterName)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher()  
      abstract com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest​(T subjectInfo)  
      abstract java.lang.String getDisplayedGFA​(java.lang.String gfa, java.lang.String currencyPair, java.lang.String unit)  
      void initialise()  
      void onDiscard​(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)  
      void onRequest​(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PricingDataProvider

        public PricingDataProvider​(java.util.List<com.caplin.ret.trapi.rates.RatesService> ratesManagers,
                                   com.caplin.ret.trapi.admin.AdminService serviceManager,
                                   org.slf4j.Logger logger,
                                   int serialExecutorPoolSize,
                                   java.util.concurrent.ExecutorService executorService,
                                   java.lang.String adapterName)
    • Method Detail

      • createQuotePublisher

        public abstract com.caplin.motif.fx.rates.FXQuotePublisher createQuotePublisher()
      • createSubscriptionRequest

        public abstract com.caplin.ret.trapi.rates.SubscriptionRequest createSubscriptionRequest​(T subjectInfo)
                                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getDisplayedGFA

        public abstract java.lang.String getDisplayedGFA​(java.lang.String gfa,
                                                         java.lang.String currencyPair,
                                                         java.lang.String unit)
      • initialise

        public void initialise()
      • onRequest

        public void onRequest​(com.caplin.motif.fx.rates.RateSubjectInfo subjectInfo)
        Specified by:
        onRequest in interface com.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 interface com.caplin.motif.datasource.CachedDataProvider<T extends com.caplin.motif.fx.rates.RateSubjectInfo>