接口 DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettingsOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings,DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings.Builder
public static interface DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettingsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings.H2UpgradePolicygetH2UpgradePolicy()Specify if http1.1 connection should be upgraded to http2 for the associated destination.intgetH2UpgradePolicyValue()Specify if http1.1 connection should be upgraded to http2 for the associated destination.intgetHttp1MaxPendingRequests()Maximum number of pending HTTP requests to a destination.intgetHttp2MaxRequests()Maximum number of requests to a backend.com.google.protobuf.DurationgetIdleTimeout()The idle timeout for upstream connection pool connections.com.google.protobuf.DurationOrBuildergetIdleTimeoutOrBuilder()The idle timeout for upstream connection pool connections.intgetMaxRequestsPerConnection()Maximum number of requests per connection to a backend.intgetMaxRetries()Maximum number of retries that can be outstanding to all hosts in a cluster at a given time.booleangetUseClientProtocol()If set to true, client protocol will be preserved while initiating connection to backend.booleanhasIdleTimeout()The idle timeout for upstream connection pool connections.
-
-
-
方法详细资料
-
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
DestinationRuleOuterClass.ConnectionPoolSettings.HTTPSettings.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.
-
-