Class MySqlAccountServiceFactory

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

    public class MySqlAccountServiceFactory
    extends java.lang.Object
    implements com.github.ambry.account.AccountServiceFactory
    MySql based implementation of AccountServiceFactory.

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

    • Field Detail

      • accountServiceConfig

        protected final com.github.ambry.config.MySqlAccountServiceConfig accountServiceConfig
    • Constructor Detail

      • MySqlAccountServiceFactory

        public MySqlAccountServiceFactory​(com.github.ambry.config.VerifiableProperties verifiableProperties,
                                          com.codahale.metrics.MetricRegistry metricRegistry)
        Constructor.
        Parameters:
        verifiableProperties - The properties to get a MySqlAccountService instance. Cannot be null.
        metricRegistry - The MetricRegistry for metrics tracking. Cannot be null.
    • Method Detail

      • getAccountService

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