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 GrpcClientConfig
GrpcClientConfig.Builder, GrpcClientConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forGrpcClient.static classGrpcClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcClientConfig>Fluent API builder base forGrpcClientConfig.Nested classes/interfaces inherited from interface HttpClientConfig
HttpClientConfig.Builder, HttpClientConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpClientConfig.static classHttpClientConfig.BuilderBase<BUILDER extends HttpClientConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpClientConfig>Fluent API builder base forHttpClientConfig.Nested classes/interfaces inherited from interface HttpConfigBase
HttpConfigBase.Builder, HttpConfigBase.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forHttpConfigBase.static classHttpConfigBase.BuilderBase<BUILDER extends HttpConfigBase.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpConfigBase>Fluent API builder base forHttpConfigBase. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcClientConfigImpl(GrpcClientConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new runtime instance from this prototype.AClientUriSupplierthat can dynamically provide zero or moreClientUris to connect.booleanWhether to collect metrics for gRPC client calls.booleanget()gRPC client services.inthashCode()Meter registry to use for gRPC client metrics.gRPC specific configuration.toString()Methods inherited from class HttpClientConfig.BuilderBase.HttpClientConfigImpl
altSvc, baseAddress, baseFragment, baseQuery, baseUri, connectionCacheSize, connectionListener, contentEncoding, cookieManager, defaultHeadersMap, dnsAddressLookup, dnsResolver, executor, filterRedirectHeaders, followCrossOriginEntityRedirects, headers, maxInMemoryEntity, mediaContext, mediaSupports, mediaTypeParserMode, readContinueTimeout, redirectSensitiveHeaders, relativeUris, sendExpectContinue, services, shareConnectionCache, sni, socketOptions, writeBufferSizeModifier and TypeMethodDescriptionaltSvc()Client policy for accepting and using HTTPAlt-Svcresponse advertisements.Base address used by the client in all requests.Base fragment used by the client in all requests (unless overwritten on per-request basis).Base query used by the client in all requests.baseUri()Base uri used by the client in all requests.intMaximum number of reusable physical connections each HTTP protocol retains for a single connection target.Socket lifecycle callbacks.Configure the listener specificContentEncodingContext.WebClient cookie manager.Default headers to be used in every request from configuration.DNS address lookup preferences to be used by this client.DNS resolver to be used by this client.executor()Client executor service.booleanWhether headers sensitive to cross-origin redirects should be filtered before the redirected request is sent.booleanWhether redirects that preserve request method and entity may be followed across origins.headers()Default headers to be used in every request.intIf the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance.Configure the listener specificMediaContext.Media supports (manually added).Configure media type parsing mode for HTTPContent-Typeheader.Socket 100-Continue read timeout.Request header names to strip on cross-origin redirects.booleanCan be set totrueto force the use of relative URIs in all requests, regardless of the presence or absence of proxies or no-proxy lists.booleanWhether Expect-100-Continue header is sent to verify server availability before sending an entity.services()WebClient services.booleanWhether to use protocol-specific JVM-wide connection caches shared by compatible WebClient instances.sni()Client-side TLS SNI configuration.Socket options for connections opened by this client.intBuffer size used when writing data to the underlying socket on a client TCP connection.Methods inherited from class HttpConfigBase.BuilderBase.HttpConfigBaseImpl
connectTimeout, followRedirects, keepAlive, maxRedirects, properties, proxy, readTimeout, tlsModifier and TypeMethodDescriptionConnect timeout.booleanWhether to follow redirects.booleanDetermines if connection keep alive is enabled (NOT socket keep alive, but HTTP connection keep alive, to re-use the same connection for multiple requests).intMax number of followed redirects.Properties configured for this client.proxy()Proxy configuration to be used for requests.Read timeout.tls()TLS configuration for any TLS request from this client.Methods inherited from interface HttpClientConfig
defaultRequestHeadersModifier and TypeMethodDescriptiondefault ClientRequestHeadersDefault headers as a headers object.
-
Constructor Details
-
GrpcClientConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- 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
-
meterRegistry
Description copied from interface:GrpcClientConfigMeter registry to use for gRPC client metrics.- Specified by:
meterRegistryin interfaceGrpcClientConfig- Returns:
- meter registry to use
-
grpcServices
Description copied from interface:GrpcClientConfiggRPC client services. Services are discovered automatically by default.- 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
-