Package com.google.cloud.compute.v1
Enum BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends
java.lang.Object
java.lang.Enum<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends>
com.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends>
- Enclosing class:
- BackendServiceConnectionTrackingPolicy
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 isPER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist forUDP. 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 Summary
Enum ConstantsEnum ConstantDescriptionALWAYS_PERSIST = 38400900;DEFAULT_FOR_PROTOCOL = 145265356;NEVER_PERSIST = 138646241;A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intALWAYS_PERSIST = 38400900;static final intDEFAULT_FOR_PROTOCOL = 145265356;static final intNEVER_PERSIST = 138646241;static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDSA value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0; -
ALWAYS_PERSIST
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends ALWAYS_PERSISTALWAYS_PERSIST = 38400900; -
DEFAULT_FOR_PROTOCOL
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends DEFAULT_FOR_PROTOCOLDEFAULT_FOR_PROTOCOL = 145265356; -
NEVER_PERSIST
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends NEVER_PERSISTNEVER_PERSIST = 138646241; -
UNRECOGNIZED
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_VALUE
public static final int UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_VALUEA value indicating that the enum field is not set.
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0;- See Also:
-
ALWAYS_PERSIST_VALUE
public static final int ALWAYS_PERSIST_VALUEALWAYS_PERSIST = 38400900;- See Also:
-
DEFAULT_FOR_PROTOCOL_VALUE
public static final int DEFAULT_FOR_PROTOCOL_VALUEDEFAULT_FOR_PROTOCOL = 145265356;- See Also:
-
NEVER_PERSIST_VALUE
public static final int NEVER_PERSIST_VALUENEVER_PERSIST = 138646241;- See Also:
-
-
Method Details
-
values
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends[] values()Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(int value) Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends forNumber(int value) - Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-