Class GrpcClientConfiguration


  • public class GrpcClientConfiguration
    extends Object
    • Field Detail

      • host

        @ConfigItem
        public String host
        The host name / IP on which the service is exposed.
      • plainText

        @ConfigItem
        public Optional<Boolean> plainText
        Whether plain-text should be used instead of TLS. Enables by default, except it TLS/SSL is configured. In this case, plain-text is disabled.
      • flowControlWindow

        @ConfigItem
        public OptionalInt flowControlWindow
        The flow control window in bytes. Default is 1MiB.
      • keepAliveTimeout

        @ConfigItem
        public Optional<Duration> keepAliveTimeout
        The amount of time the sender of of a keep alive ping waits for an acknowledgement.
      • keepAliveWithoutCalls

        @ConfigItem(defaultValue="false")
        public boolean keepAliveWithoutCalls
        Whether keep-alive will be performed when there are no outstanding RPC on a connection.
      • maxRetryAttempts

        @ConfigItem(defaultValue="5")
        public int maxRetryAttempts
        The max number of retry attempts. Retry must be explicitly enabled.
      • maxTraceEvents

        @ConfigItem
        public OptionalInt maxTraceEvents
        The maximum number of channel trace events to keep in the tracer for each channel or sub-channel.
      • maxInboundMessageSize

        @ConfigItem
        public OptionalInt maxInboundMessageSize
        The maximum message size allowed for a single gRPC frame (in bytes). Default is 4 MiB.
      • maxInboundMetadataSize

        @ConfigItem
        public OptionalInt maxInboundMetadataSize
        The maximum size of metadata allowed to be received (in bytes). Default is 8192B.
      • negotiationType

        @ConfigItem(defaultValue="TLS")
        public String negotiationType
        The negotiation type for the HTTP/2 connection. Accepted values are: TLS, PLAINTEXT_UPGRADE, PLAINTEXT
      • overrideAuthority

        @ConfigItem
        public Optional<String> overrideAuthority
        Overrides the authority used with TLS and HTTP virtual hosting.
      • perRpcBufferLimit

        @ConfigItem
        public OptionalLong perRpcBufferLimit
        The per RPC buffer limit in bytes used for retry.
      • retry

        @ConfigItem(defaultValue="false")
        public boolean retry
        Whether retry is enabled. Note that retry is disabled by default.
      • loadBalancingPolicy

        @ConfigItem(defaultValue="pick_first")
        public String loadBalancingPolicy
        Use a custom load balancing policy. Accepted values are: pick_value, round_robin, grpclb
      • compression

        @ConfigItem
        public Optional<String> compression
        The compression to use for each call. The accepted values are gzip and identity.
      • deadline

        @ConfigItem
        public Optional<Duration> deadline
        The deadline used for each call.

        The format uses the standard Duration format. You can also provide duration values starting with a number. In this case, if the value consists only of a number, the converter treats the value as seconds. Otherwise, PT is implicitly prepended to the value to obtain a standard Duration format.

    • Constructor Detail

      • GrpcClientConfiguration

        public GrpcClientConfiguration()