Class JConfigClientFactory

java.lang.Object
csw.config.client.javadsl.JConfigClientFactory

public class JConfigClientFactory extends Object
The factory is used to create ConfigClient instance.
  • Constructor Details

    • JConfigClientFactory

      public JConfigClientFactory()
  • Method Details

    • adminApi

      public static IConfigService adminApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService, TokenFactory tokenFactory)
      Create ConfigClient instance for admin users.

      Parameters:
      actorSystem - local actor system of the client
      locationService - location service instance which will be used to resolve the location of config server
      tokenFactory - factory to get access tokens
      Returns:
      an instance of IConfigService
    • clientApi

      public static IConfigClientService clientApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService)
      Create ConfigClient instance for non admin users.

      Parameters:
      actorSystem - local actor system of the client
      locationService - location service instance which will be used to resolve the location of config server
      Returns:
      an instance of IConfigClientService