Class GrpcConfig.BuilderBase.GrpcConfigImpl
java.lang.Object
io.helidon.webserver.grpc.GrpcConfig.BuilderBase.GrpcConfigImpl
- All Implemented Interfaces:
Prototype.Api, NamedService, GrpcConfig, ProtocolConfig
- Enclosing class:
GrpcConfig.BuilderBase<BUILDER extends GrpcConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcConfig>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GrpcConfig
GrpcConfig.Builder, GrpcConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forGrpcConfig.static classGrpcConfig.BuilderBase<BUILDER extends GrpcConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends GrpcConfig>Fluent API builder base forGrpcConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcConfigImpl(GrpcConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to support compression if requested by a client.booleanWhether to collect metrics for gRPC server calls.booleangRPC server services.inthashCode()intMax size of gRPC reading buffer.name()Protocol configuration name.toString()type()Protocol configuration type.Methods inherited from interface ProtocolConfig
enabled, transportBindingTypesModifier and TypeMethodDescriptiondefault booleanenabled()Whether this protocol configuration is enabled.Transport binding provider keys compatible with this protocol.
-
Constructor Details
-
GrpcConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
name
Description copied from interface:GrpcConfigProtocol configuration name.- Specified by:
namein interfaceGrpcConfig- Specified by:
namein interfaceNamedService- Returns:
- name of this configuration
-
type
Description copied from interface:GrpcConfigProtocol configuration type.- Specified by:
typein interfaceGrpcConfig- Specified by:
typein interfaceNamedService- Returns:
- type of this configuration
-
enableMetrics
public boolean enableMetrics()Description copied from interface:GrpcConfigWhether to collect metrics for gRPC server calls.- Specified by:
enableMetricsin interfaceGrpcConfig- Returns:
- metrics flag
-
enableCompression
public boolean enableCompression()Description copied from interface:GrpcConfigWhether to support compression if requested by a client. If explicitly disabled, no compression will ever be used by the server even if a client-compatible compressor is found.- Specified by:
enableCompressionin interfaceGrpcConfig- Returns:
- true if compression is enabled
-
grpcServices
Description copied from interface:GrpcConfiggRPC server services. Services are discovered automatically by default.- Specified by:
grpcServicesin interfaceGrpcConfig- Returns:
- services to use
-
maxReadBufferSize
public int maxReadBufferSize()Description copied from interface:GrpcConfigMax size of gRPC reading buffer. If receiving an entity larger than this, processing will be aborted. This can help prevent DoS attacks. Default set to 4 MB.- Specified by:
maxReadBufferSizein interfaceGrpcConfig- Returns:
- max read buffer size
-
toString
-
equals
-
hashCode
-