Annotation Interface RpcClient.Endpoint
- Enclosing class:
RpcClient
Defines a declarative gRPC client endpoint.
In case key
Configuration options for gRPC clients (prefixed by configKey()):
| Key | Default Value | Description |
|---|---|---|
client |
Backing GrpcClient configuration. The endpoint URI is applied after this configuration. |
client node exists under the configuration node of this API, a new client will be created for
this instance, using value() as its base URI (this always wins).
In case the clientName() is defined, and an instance of that name is available in registry, it will be
used for this instance. If the named client is not available, a new client will be created with value()
as its base URI.
When clientName() is not defined, we use an unnamed client instance from the registry (if any).
The last resort is to create a new client with value() as its base URI.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionName of a registry-providedGrpcClientto use.Configuration key base to use when looking up options for the backing gRPC client.
-
Element Details
-
value
String valueTarget URI of the generated backing gRPC client.Supports configuration references, such as
"http://localhost:${server.port}". This value is used as the base URI when the generated client creates a backingGrpcClient. Registry-provided clients keep their own base URI.- Returns:
- target URI
-
configKey
String configKeyConfiguration key base to use when looking up options for the backing gRPC client.- Returns:
- configuration key prefix
- Default:
""
-
clientName
-