Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
Class GrpcClientConfig.BuilderBase.GrpcClientConfigImpl
java.lang.Object
io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
io.helidon.webclient.api.HttpClientConfig.BuilderBase.HttpClientConfigImpl
io.helidon.webclient.grpc.GrpcClientConfig.BuilderBase.GrpcClientConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<GrpcClient>
,HttpClientConfig
,HttpConfigBase
,GrpcClientConfig
,Supplier<GrpcClient>
- Enclosing class:
GrpcClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig>
protected static class GrpcClientConfig.BuilderBase.GrpcClientConfigImpl
extends HttpClientConfig.BuilderBase.HttpClientConfigImpl
implements GrpcClientConfig, Supplier<GrpcClient>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webclient.grpc.GrpcClientConfig
GrpcClientConfig.Builder, GrpcClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig> Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpClientConfig
HttpClientConfig.Builder, HttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpClientConfig> Nested classes/interfaces inherited from interface io.helidon.webclient.api.HttpConfigBase
HttpConfigBase.Builder, HttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends HttpConfigBase> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GrpcClientConfigImpl
(GrpcClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.default ClientRequestHeaders
Default headers as a headers object.boolean
Whether to collect metrics for gRPC client calls.boolean
get()
gRPC client services.int
hashCode()
gRPC specific configuration.toString()
Methods inherited from class io.helidon.webclient.api.HttpClientConfig.BuilderBase.HttpClientConfigImpl
baseFragment, baseQuery, baseUri, connectionCacheSize, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, relativeUris, sendExpectContinue, services, shareConnectionCache, socketOptions, writeBufferSize
Methods inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tls
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.webclient.api.HttpClientConfig
baseFragment, baseQuery, baseUri, connectionCacheSize, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, relativeUris, sendExpectContinue, services, shareConnectionCache, socketOptions, writeBufferSize
Methods inherited from interface io.helidon.webclient.api.HttpConfigBase
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tls
-
Constructor Details
-
GrpcClientConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<GrpcClient>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<GrpcClient>
-
protocolConfig
Description copied from interface:GrpcClientConfig
gRPC specific configuration.- Specified by:
protocolConfig
in interfaceGrpcClientConfig
- Returns:
- protocol specific configuration
-
clientUriSupplier
Description copied from interface:GrpcClientConfig
AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.- Specified by:
clientUriSupplier
in interfaceGrpcClientConfig
- Returns:
- a supplier for zero or more client URIs
-
enableMetrics
public boolean enableMetrics()Description copied from interface:GrpcClientConfig
Whether to collect metrics for gRPC client calls.- Specified by:
enableMetrics
in interfaceGrpcClientConfig
- Returns:
- metrics flag
-
grpcServices
Description copied from interface:GrpcClientConfig
gRPC client services. A gRPC service needs to be explicitly added to be enabled given thatdiscoveredServices
isfalse
.- Specified by:
grpcServices
in interfaceGrpcClientConfig
- Returns:
- services to use with this gRPC client
-
toString
- Overrides:
toString
in classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
equals
- Overrides:
equals
in classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
defaultRequestHeaders
Default headers as a headers object. Creates a new instance for each call, so the returned value can be safely mutated.- Returns:
- default headers
-