Class GrpcConfig.Builder
java.lang.Object
io.helidon.webserver.grpc.GrpcConfig.BuilderBase<GrpcConfig.Builder, GrpcConfig>
io.helidon.webserver.grpc.GrpcConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<GrpcConfig.Builder, GrpcConfig>, Builder<GrpcConfig.Builder, GrpcConfig>, ConfigBuilderSupport.ConfiguredBuilder<GrpcConfig.Builder, GrpcConfig>, Supplier<GrpcConfig>
- Enclosing interface:
GrpcConfig
public static class GrpcConfig.Builder
extends GrpcConfig.BuilderBase<GrpcConfig.Builder, GrpcConfig>
implements Builder<GrpcConfig.Builder, GrpcConfig>
Fluent API builder for
GrpcConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class GrpcConfig.BuilderBase
GrpcConfig.BuilderBase.GrpcConfigImplModifier 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 GrpcConfig.BuilderBase
addGrpcService, addGrpcServices, clearGrpcServices, config, config, enableCompression, enableCompression, enableMetrics, enableMetrics, from, from, grpcServices, grpcServices, grpcServicesDiscoverServices, grpcServicesDiscoverServices, maxReadBufferSize, maxReadBufferSize, name, name, preBuildPrototype, toString, type, type, validatePrototypeModifier and TypeMethodDescriptionaddGrpcService(GrpcServerService grpcService) gRPC server services.addGrpcServices(List<? extends GrpcServerService> grpcServices) gRPC server services.Clear all grpcServices.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanWhether to support compression if requested by a client.enableCompression(boolean enableCompression) Whether to support compression if requested by a client.booleanWhether to collect metrics for gRPC server calls.enableMetrics(boolean enableMetrics) Whether to collect metrics for gRPC server calls.from(GrpcConfig prototype) Update this builder from an existing prototype instance.from(GrpcConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.gRPC server services.grpcServices(List<? extends GrpcServerService> grpcServices) gRPC server services.booleanService discovery flag forGrpcConfig.BuilderBase.grpcServices().grpcServicesDiscoverServices(boolean grpcServicesDiscoverServices) Service discovery flag forGrpcConfig.BuilderBase.grpcServices().intMax size of gRPC reading buffer.maxReadBufferSize(int maxReadBufferSize) Max size of gRPC reading buffer.name()Protocol configuration name.Protocol configuration name.protected voidHandles providers and decorators.toString()type()Protocol configuration type.Protocol configuration type.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 GrpcConfigget()default GrpcConfig.Builderidentity()Instance of this builder as the correct type.default GrpcConfig.Builderupdate(Consumer<GrpcConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault GrpcConfig.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<GrpcConfig.Builder, GrpcConfig>- 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<GrpcConfig.Builder, GrpcConfig>- Returns:
- instance of the built type
-