Class CompositeAccountServiceFactory

  • All Implemented Interfaces:
    com.github.ambry.account.AccountServiceFactory

    public class CompositeAccountServiceFactory
    extends java.lang.Object
    implements com.github.ambry.account.AccountServiceFactory
    Composite account service based implementation of AccountServiceFactory.

    Returns a new instance of CompositeAccountService on getAccountService() call.

    • Field Detail

      • primaryAccountServiceFactory

        protected final com.github.ambry.account.AccountServiceFactory primaryAccountServiceFactory
      • secondaryAccountServiceFactory

        protected final com.github.ambry.account.AccountServiceFactory secondaryAccountServiceFactory
      • compositeAccountServiceConfig

        protected final com.github.ambry.config.CompositeAccountServiceConfig compositeAccountServiceConfig
    • Constructor Detail

      • CompositeAccountServiceFactory

        public CompositeAccountServiceFactory​(com.github.ambry.config.VerifiableProperties verifiableProperties,
                                              com.codahale.metrics.MetricRegistry metricRegistry)
                                       throws java.lang.ReflectiveOperationException
        Constructor.
        Parameters:
        verifiableProperties - The properties to get a CompositeAccountService instance. Cannot be null.
        metricRegistry - The MetricRegistry for metrics tracking. Cannot be null.
        Throws:
        java.lang.ReflectiveOperationException
    • Method Detail

      • getAccountService

        public com.github.ambry.account.AccountService getAccountService()
        Specified by:
        getAccountService in interface com.github.ambry.account.AccountServiceFactory