object GrpcClientSettings
- Source
- GrpcClientSettings.scala
- Alphabetic
- By Inheritance
- GrpcClientSettings
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def connectToServiceAt(host: String, port: Int)(implicit actorSystem: ClassicActorSystemProvider): GrpcClientSettings
Create a client that uses a static host and port.
Create a client that uses a static host and port. Default configuration is loaded from reference.conf
- def fromConfig(clientConfiguration: Config)(implicit sys: ClassicActorSystemProvider): GrpcClientSettings
Configure client via the provided Config.
Configure client via the provided Config. See reference.conf for configuration properties.
- def fromConfig(clientName: String, config: Config)(implicit actorSystem: ClassicActorSystemProvider): GrpcClientSettings
Look up client settings from the given configuration.
Look up client settings from the given configuration. Will look for an entry with the given name client name directly in the config block. Each client configuration falls back to the defaults defined in reference.conf
- clientName
of the client name to lookup config from the given config
- def fromConfig(clientName: String)(implicit actorSystem: ClassicActorSystemProvider): GrpcClientSettings
Look up client settings from an ActorSystem's configuration.
Look up client settings from an ActorSystem's configuration. Client configuration must be under
akka.grpc.client
. Each client configuration falls back to the defaults defined in reference.conf- clientName
of the client configuration to lookup config from the ActorSystem's config
- def usingServiceDiscovery(serviceName: String, discovery: ServiceDiscovery)(implicit actorSystem: ClassicActorSystemProvider): GrpcClientSettings
Configure the client to lookup a valid hostname:port from a service registry accessed via the provided
ServiceDiscovery
.Configure the client to lookup a valid hostname:port from a service registry accessed via the provided
ServiceDiscovery
. When invoking a lookup operation on the service registry, a name is required and optionally a port name and a protocol. This factory method only requires aserviceName
. UsewithServicePortName
andwithServiceProtocol
to refine the lookup on the service registry.- serviceName
name of the remote service to lookup.
- def usingServiceDiscovery(serviceName: String)(implicit actorSystem: ClassicActorSystemProvider): GrpcClientSettings
Configure the client to lookup a valid hostname:port from a service registry accessed via the
ServiceDiscovery
instance registered in theactorSystem
provided.Configure the client to lookup a valid hostname:port from a service registry accessed via the
ServiceDiscovery
instance registered in theactorSystem
provided. When invoking a lookup operation on the service registry, a name is required and optionally a port name and a protocol. This factory method only requires aserviceName
. UsewithServicePortName
andwithServiceProtocol
to refine the lookup on the service registry.- serviceName
name of the remote service to lookup.