Package csw.config.client.javadsl
Class JConfigClientFactory$
- java.lang.Object
-
- csw.config.client.javadsl.JConfigClientFactory$
-
public class JConfigClientFactory$ extends java.lang.Object
The factory is used to create ConfigClient instance.
-
-
Field Summary
Fields Modifier and Type Field Description static JConfigClientFactory$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description JConfigClientFactory$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigService
adminApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService, TokenFactory tokenFactory)
Create ConfigClient instance for admin users.IConfigClientService
clientApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService)
Create ConfigClient instance for non admin users.
-
-
-
Field Detail
-
MODULE$
public static final JConfigClientFactory$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
adminApi
public IConfigService adminApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService, TokenFactory tokenFactory)
Create ConfigClient instance for admin users.- Parameters:
actorSystem
- local actor system of the clientlocationService
- location service instance which will be used to resolve the location of config servertokenFactory
- factory to get access tokens- Returns:
- an instance of IConfigService
-
clientApi
public IConfigClientService clientApi(akka.actor.typed.ActorSystem<?> actorSystem, ILocationService locationService)
Create ConfigClient instance for non admin users.- Parameters:
actorSystem
- local actor system of the clientlocationService
- location service instance which will be used to resolve the location of config server- Returns:
- an instance of IConfigClientService
-
-