Class GrpcClientProtocolConfig.Builder
java.lang.Object
io.helidon.webclient.grpc.GrpcClientProtocolConfig.BuilderBase<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>
io.helidon.webclient.grpc.GrpcClientProtocolConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>, Builder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>, ConfigBuilderSupport.ConfiguredBuilder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>, Supplier<GrpcClientProtocolConfig>
- Enclosing interface:
GrpcClientProtocolConfig
public static class GrpcClientProtocolConfig.Builder
extends GrpcClientProtocolConfig.BuilderBase<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>
implements Builder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>
Fluent API builder for
GrpcClientProtocolConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class GrpcClientProtocolConfig.BuilderBase
GrpcClientProtocolConfig.BuilderBase.GrpcClientProtocolConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class GrpcClientProtocolConfig.BuilderBase
abortPollTimeExpired, abortPollTimeExpired, config, config, from, from, heartbeatPeriod, heartbeatPeriod, initBufferSize, initBufferSize, name, name, nextRequestWaitTime, nextRequestWaitTime, pollWaitTime, pollWaitTime, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionbooleanWhether to continue retrying after a poll wait timeout expired or not.abortPollTimeExpired(boolean abortPollTimeExpired) Whether to continue retrying after a poll wait timeout expired or not.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(GrpcClientProtocolConfig prototype) Update this builder from an existing prototype instance.from(GrpcClientProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.How often to send a heartbeat (HTTP/2 ping) to check if the connection is still alive.heartbeatPeriod(Duration heartbeatPeriod) How often to send a heartbeat (HTTP/2 ping) to check if the connection is still alive.intInitial buffer size used to serialize gRPC request payloads.initBufferSize(int initBufferSize) Initial buffer size used to serialize gRPC request payloads.name()Name identifying this client protocol.Name identifying this client protocol.When data has been received from the server but not yet requested by the client (i.e., listener), the implementation will wait for this duration before signaling an error.nextRequestWaitTime(Duration nextRequestWaitTime) When data has been received from the server but not yet requested by the client (i.e., listener), the implementation will wait for this duration before signaling an error.How long to wait for the next HTTP/2 data frame to arrive in underlying stream.pollWaitTime(Duration pollWaitTime) How long to wait for the next HTTP/2 data frame to arrive in underlying stream.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault GrpcClientProtocolConfigget()default GrpcClientProtocolConfig.Builderidentity()Instance of this builder as the correct type.default GrpcClientProtocolConfig.Builderupdate(Consumer<GrpcClientProtocolConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault GrpcClientProtocolConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<GrpcClientProtocolConfig.Builder, GrpcClientProtocolConfig>- Returns:
- instance of the built type
-