- All Superinterfaces:
NamedService
,ProtocolConfig
,Prototype.Api
- All Known Implementing Classes:
GrpcConfig.BuilderBase.GrpcConfigImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Fluent API builder forGrpcConfig
.static class
GrpcConfig.BuilderBase<BUILDER extends GrpcConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends GrpcConfig> Fluent API builder base forGrpcConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static GrpcConfig.Builder
builder
(GrpcConfig instance) Create a new fluent API builder from an existing instance.static GrpcConfig
create()
Create a new instance with default values.static GrpcConfig
Create a new instance from configuration.boolean
Whether to support compression if requested by a client.boolean
Whether to collect metrics for gRPC server calls.name()
Protocol configuration name.type()
Protocol configuration type.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
name
String name()Protocol configuration name.- Specified by:
name
in interfaceNamedService
- Returns:
- name of this configuration
-
type
String type()Protocol configuration type.- Specified by:
type
in interfaceNamedService
- Returns:
- type of this configuration
-
enableMetrics
boolean enableMetrics()Whether to collect metrics for gRPC server calls.- Returns:
- metrics flag
-
enableCompression
boolean enableCompression()Whether to support compression if requested by a client. If explicitly disabled, no compression will be ever be used by the server even if a client-compatible compressor is found.- Returns:
- true if compression is enabled
-