public static enum BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends extends Enum<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends> implements com.google.protobuf.ProtocolMessageEnum
Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence).Protobuf enum
google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends| Enum Constant and Description |
|---|
ALWAYS_PERSIST
ALWAYS_PERSIST = 38400900; |
DEFAULT_FOR_PROTOCOL
DEFAULT_FOR_PROTOCOL = 145265356; |
NEVER_PERSIST
NEVER_PERSIST = 138646241; |
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALWAYS_PERSIST_VALUE
ALWAYS_PERSIST = 38400900; |
static int |
DEFAULT_FOR_PROTOCOL_VALUE
DEFAULT_FOR_PROTOCOL = 145265356; |
static int |
NEVER_PERSIST_VALUE
NEVER_PERSIST = 138646241; |
static int |
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_VALUE
A value indicating that the enum field is not set.
|
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS
A value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0;public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends ALWAYS_PERSIST
ALWAYS_PERSIST = 38400900;public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends DEFAULT_FOR_PROTOCOL
DEFAULT_FOR_PROTOCOL = 145265356;public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends NEVER_PERSIST
NEVER_PERSIST = 138646241;public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends UNRECOGNIZED
public static final int UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_VALUE
A value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0;public static final int ALWAYS_PERSIST_VALUE
ALWAYS_PERSIST = 38400900;public static final int DEFAULT_FOR_PROTOCOL_VALUE
DEFAULT_FOR_PROTOCOL = 145265356;public static final int NEVER_PERSIST_VALUE
NEVER_PERSIST = 138646241;public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends[] values()
for (BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends c : BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends.values()) System.out.println(c);
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.