Module io.helidon.webclient.grpc
Package io.helidon.webclient.grpc
Class GrpcClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GrpcClientConfig>
java.lang.Object
io.helidon.webclient.api.HttpConfigBase.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webclient.api.HttpClientConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webclient.grpc.GrpcClientConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> Prototype.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
GrpcClientConfig.Builder
- Enclosing interface:
GrpcClientConfig
public abstract static class GrpcClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends GrpcClientConfig>
extends HttpClientConfig.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
GrpcClient
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.webclient.api.HttpClientConfig.BuilderBase
HttpClientConfig.BuilderBase.HttpClientConfigImpl
Nested classes/interfaces inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase
HttpConfigBase.BuilderBase.HttpConfigBaseImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.clientUriSupplier
(ClientUriSupplier clientUriSupplier) AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).from
(GrpcClientConfig prototype) Update this builder from an existing prototype instance.from
(GrpcClientConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected void
Handles providers and decorators.gRPC specific configuration.protocolConfig
(GrpcClientProtocolConfig protocolConfig) gRPC specific configuration.gRPC specific configuration.protocolConfig
(Supplier<? extends GrpcClientProtocolConfig> supplier) gRPC specific configuration.toString()
protected void
Validates required properties.Methods inherited from class io.helidon.webclient.api.HttpClientConfig.BuilderBase
addDefaultHeadersMap, addHeader, addHeader, addHeader, addHeader, addHeader, addHeader, addHeader, addHeaders, addMediaSupport, addMediaSupports, addService, addServices, baseFragment, baseFragment, baseQuery, baseQuery, baseUri, baseUri, baseUri, baseUri, baseUri, clearBaseFragment, clearBaseQuery, clearBaseUri, clearCookieManager, connectionCacheSize, connectionCacheSize, contentEncoding, contentEncoding, contentEncoding, contentEncoding, contentEncoding, cookieManager, cookieManager, cookieManager, cookieManager, defaultHeadersMap, defaultHeadersMap, dnsAddressLookup, dnsAddressLookup, dnsResolver, dnsResolver, executor, executor, from, from, headers, headers, maxInMemoryEntity, maxInMemoryEntity, mediaContext, mediaContext, mediaContext, mediaContext, mediaContext, mediaSupports, mediaSupports, mediaTypeParserMode, mediaTypeParserMode, readContinueTimeout, readContinueTimeout, relativeUris, relativeUris, sendExpectContinue, sendExpectContinue, services, services, servicesDiscoverServices, shareConnectionCache, shareConnectionCache, socketOptions, socketOptions, socketOptions, socketOptions
Methods inherited from class io.helidon.webclient.api.HttpConfigBase.BuilderBase
addProperties, clearConnectTimeout, clearReadTimeout, connectTimeout, connectTimeout, followRedirects, followRedirects, from, from, keepAlive, keepAlive, maxRedirects, maxRedirects, properties, properties, proxy, proxy, proxy, proxy, putProperty, readTimeout, readTimeout, tls, tls, tls, tls, tls
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfacePrototype.ConfiguredBuilder<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig> - Overrides:
config
in classHttpClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
protocolConfig
gRPC specific configuration.- Parameters:
protocolConfig
- protocol specific configuration- Returns:
- updated builder instance
- See Also:
-
protocolConfig
gRPC specific configuration.- Parameters:
consumer
- consumer of builder for protocol specific configuration- Returns:
- updated builder instance
- See Also:
-
protocolConfig
gRPC specific configuration.- Parameters:
supplier
- supplier of protocol specific configuration- Returns:
- updated builder instance
- See Also:
-
clearClientUriSupplier
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
clientUriSupplier
AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.- Parameters:
clientUriSupplier
- a supplier for zero or more client URIs- Returns:
- updated builder instance
- See Also:
-
protocolConfig
gRPC specific configuration.- Returns:
- the protocol config
-
clientUriSupplier
AClientUriSupplier
that can dynamically provide zero or moreClientUri
s to connect.- Returns:
- the client uri supplier
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classHttpClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classHttpClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classHttpClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classHttpClientConfig.BuilderBase<BUILDER extends GrpcClientConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcClientConfig>
-