接口 DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettingsOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings, DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings.Builder
封闭类:
DestinationRuleOuterClass.ConnectionPoolSettings

public static interface DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettingsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法概要

    修饰符和类型
    方法
    说明
    Specify if http1.1 connection should be upgraded to http2 for the associated destination.
    int
    Specify if http1.1 connection should be upgraded to http2 for the associated destination.
    int
    Maximum number of pending HTTP requests to a destination.
    int
    Maximum number of requests to a backend.
    com.google.protobuf.Duration
    The idle timeout for upstream connection pool connections.
    com.google.protobuf.DurationOrBuilder
    The idle timeout for upstream connection pool connections.
    int
    Maximum number of requests per connection to a backend.
    int
    Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.
    boolean
    If set to true, client protocol will be preserved while initiating connection to backend.
    boolean
    The idle timeout for upstream connection pool connections.

    从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    从接口继承的方法 com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 方法详细资料

    • getHttp1MaxPendingRequests

      int getHttp1MaxPendingRequests()
       Maximum number of pending HTTP requests to a destination. Default 2^32-1.
       
      int32 http1_max_pending_requests = 1;
      返回:
      The http1MaxPendingRequests.
    • getHttp2MaxRequests

      int getHttp2MaxRequests()
       Maximum number of requests to a backend. Default 2^32-1.
       
      int32 http2_max_requests = 2;
      返回:
      The http2MaxRequests.
    • getMaxRequestsPerConnection

      int getMaxRequestsPerConnection()
       Maximum number of requests per connection to a backend. Setting this
       parameter to 1 disables keep alive. Default 0, meaning "unlimited",
       up to 2^29.
       
      int32 max_requests_per_connection = 3;
      返回:
      The maxRequestsPerConnection.
    • getMaxRetries

      int getMaxRetries()
       Maximum number of retries that can be outstanding to all hosts in a
       cluster at a given time. Defaults to 2^32-1.
       
      int32 max_retries = 4;
      返回:
      The maxRetries.
    • hasIdleTimeout

      boolean hasIdleTimeout()
       The idle timeout for upstream connection pool connections. The idle timeout 
       is defined as the period in which there are no active requests.
       If not set, the default is 1 hour. When the idle timeout is reached, 
       the connection will be closed. If the connection is an HTTP/2 
       connection a drain sequence will occur prior to closing the connection. 
       Note that request based timeouts mean that HTTP/2 PINGs will not 
       keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections. 
       
      .google.protobuf.Duration idle_timeout = 5;
      返回:
      Whether the idleTimeout field is set.
    • getIdleTimeout

      com.google.protobuf.Duration getIdleTimeout()
       The idle timeout for upstream connection pool connections. The idle timeout 
       is defined as the period in which there are no active requests.
       If not set, the default is 1 hour. When the idle timeout is reached, 
       the connection will be closed. If the connection is an HTTP/2 
       connection a drain sequence will occur prior to closing the connection. 
       Note that request based timeouts mean that HTTP/2 PINGs will not 
       keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections. 
       
      .google.protobuf.Duration idle_timeout = 5;
      返回:
      The idleTimeout.
    • getIdleTimeoutOrBuilder

      com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
       The idle timeout for upstream connection pool connections. The idle timeout 
       is defined as the period in which there are no active requests.
       If not set, the default is 1 hour. When the idle timeout is reached, 
       the connection will be closed. If the connection is an HTTP/2 
       connection a drain sequence will occur prior to closing the connection. 
       Note that request based timeouts mean that HTTP/2 PINGs will not 
       keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections. 
       
      .google.protobuf.Duration idle_timeout = 5;
    • getH2UpgradePolicyValue

      int getH2UpgradePolicyValue()
       Specify if http1.1 connection should be upgraded to http2 for the associated destination.
       
      .istio.networking.v1alpha3.ConnectionPoolSettings.HTTPSettings.H2UpgradePolicy h2_upgrade_policy = 6;
      返回:
      The enum numeric value on the wire for h2UpgradePolicy.
    • getH2UpgradePolicy

       Specify if http1.1 connection should be upgraded to http2 for the associated destination.
       
      .istio.networking.v1alpha3.ConnectionPoolSettings.HTTPSettings.H2UpgradePolicy h2_upgrade_policy = 6;
      返回:
      The h2UpgradePolicy.
    • getUseClientProtocol

      boolean getUseClientProtocol()
       If set to true, client protocol will be preserved while initiating connection to backend.
       Note that when this is set to true, h2_upgrade_policy will be ineffective i.e. the client
       connections will not be upgraded to http2.
       
      bool use_client_protocol = 7;
      返回:
      The useClientProtocol.