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
ConstructorsModifierConstructorDescriptionprotectedGrpcClientConfigImpl(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.AClientUriSupplierthat can dynamically provide zero or moreClientUris to connect.default ClientRequestHeadersDefault headers as a headers object.booleanWhether to collect metrics for gRPC client calls.booleanget()gRPC client services.inthashCode()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, writeBufferSizeMethods inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tlsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, writeBufferSizeMethods 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.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<GrpcClient>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<GrpcClient>
-
protocolConfig
Description copied from interface:GrpcClientConfiggRPC specific configuration.- Specified by:
protocolConfigin interfaceGrpcClientConfig- Returns:
- protocol specific configuration
-
clientUriSupplier
Description copied from interface:GrpcClientConfigAClientUriSupplierthat can dynamically provide zero or moreClientUris to connect.- Specified by:
clientUriSupplierin interfaceGrpcClientConfig- Returns:
- a supplier for zero or more client URIs
-
enableMetrics
public boolean enableMetrics()Description copied from interface:GrpcClientConfigWhether to collect metrics for gRPC client calls.- Specified by:
enableMetricsin interfaceGrpcClientConfig- Returns:
- metrics flag
-
grpcServices
Description copied from interface:GrpcClientConfiggRPC client services. A gRPC service needs to be explicitly added to be enabled given thatdiscoveredServicesisfalse.- Specified by:
grpcServicesin interfaceGrpcClientConfig- Returns:
- services to use with this gRPC client
-
toString
- Overrides:
toStringin classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
equals
- Overrides:
equalsin classHttpClientConfig.BuilderBase.HttpClientConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein 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
-