Package io.quarkus.grpc.runtime.config
Class GrpcClientConfiguration
java.lang.Object
io.quarkus.grpc.runtime.config.GrpcClientConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe compression to use for each call.The deadline used for each call.static final StringThe flow control window in bytes.The host name / IP on which the service is exposed.The duration without ongoing RPCs before going to idle mode.Configure InProcess usage, if enabled.The duration after which a keep alive ping is sent.The amount of time the sender of a keep alive ping waits for an acknowledgement.booleanWhether keep-alive will be performed when there are no outstanding RPC on a connection.Use a custom load balancing policy.intThe max number of hedged attempts.The maximum message size allowed for a single gRPC frame (in bytes).The maximum size of metadata allowed to be received (in bytes).intThe max number of retry attempts.The maximum number of channel trace events to keep in the tracer for each channel or sub-channel.Use a name resolver.The negotiation type for the HTTP/2 connection.Overrides the authority used with TLS and HTTP virtual hosting.The per RPC buffer limit in bytes used for retry.Whetherplain-textshould be used instead ofTLS.intThe gRPC service port.booleanWhether retry is enabled.The retry buffer size in bytes.The SSL/TLS config.Configure Stork usage with new Vert.x gRPC, if enabled.The gRPC service test port.The TLS config.booleanUse new Vert.x gRPC client support.Use a custom user-agent.Configure XDS usage, if enabled.static final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DNS
- See Also:
-
XDS
- See Also:
-
useQuarkusGrpcClient
Use new Vert.x gRPC client support. By default, we still use previous Java gRPC support. -
xds
Configure XDS usage, if enabled. -
inProcess
Configure InProcess usage, if enabled. -
stork
Configure Stork usage with new Vert.x gRPC, if enabled. -
port
The gRPC service port. -
testPort
The gRPC service test port. -
host
The host name / IP on which the service is exposed. -
ssl
The SSL/TLS config. Only use this if you want to use the old Java gRPC client. -
tls
The TLS config. Only use this if you want to use the Quarkus gRPC client. -
nameResolver
Use a name resolver. Defaults to dns. If set to "stork", host will be treated as SmallRye Stork service name -
plainText
Whetherplain-textshould be used instead ofTLS. Enabled by default, except if TLS/SSL is configured. In this case,plain-textis disabled. -
keepAliveTime
The duration after which a keep alive ping is sent. -
flowControlWindow
The flow control window in bytes. Default is 1MiB. -
idleTimeout
The duration without ongoing RPCs before going to idle mode. -
keepAliveTimeout
The amount of time the sender of a keep alive ping waits for an acknowledgement. -
keepAliveWithoutCalls
Whether keep-alive will be performed when there are no outstanding RPC on a connection. -
maxHedgedAttempts
The max number of hedged attempts. -
maxRetryAttempts
The max number of retry attempts. Retry must be explicitly enabled. -
maxTraceEvents
The maximum number of channel trace events to keep in the tracer for each channel or sub-channel. -
maxInboundMessageSize
The maximum message size allowed for a single gRPC frame (in bytes). Default is 4 MiB. -
maxInboundMetadataSize
The maximum size of metadata allowed to be received (in bytes). Default is 8192B. -
negotiationType
The negotiation type for the HTTP/2 connection. Accepted values are:TLS,PLAINTEXT_UPGRADE,PLAINTEXT -
overrideAuthority
Overrides the authority used with TLS and HTTP virtual hosting. -
perRpcBufferLimit
The per RPC buffer limit in bytes used for retry. -
retry
Whether retry is enabled. Note that retry is disabled by default. -
retryBufferSize
The retry buffer size in bytes. -
userAgent
Use a custom user-agent. -
loadBalancingPolicy
Use a custom load balancing policy. Accepted values are:pick_first,round_robin,grpclb. This value is ignored if name-resolver is set to 'stork'. -
compression
The compression to use for each call. The accepted values aregzipandidentity. -
deadline
The deadline used for each call.
-
-
Constructor Details
-
GrpcClientConfiguration
public GrpcClientConfiguration()
-