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 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 enumgoogle.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
-
-
-
Enum Constant Detail
-
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS
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;
-
ALWAYS_PERSIST
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends ALWAYS_PERSIST
ALWAYS_PERSIST = 38400900;
-
DEFAULT_FOR_PROTOCOL
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends DEFAULT_FOR_PROTOCOL
DEFAULT_FOR_PROTOCOL = 145265356;
-
NEVER_PERSIST
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends NEVER_PERSIST
NEVER_PERSIST = 138646241;
-
UNRECOGNIZED
public static final BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_VALUE
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;
- See Also:
- Constant Field Values
-
ALWAYS_PERSIST_VALUE
public static final int ALWAYS_PERSIST_VALUE
ALWAYS_PERSIST = 38400900;
- See Also:
- Constant Field Values
-
DEFAULT_FOR_PROTOCOL_VALUE
public static final int DEFAULT_FOR_PROTOCOL_VALUE
DEFAULT_FOR_PROTOCOL = 145265356;
- See Also:
- Constant Field Values
-
NEVER_PERSIST_VALUE
public static final int NEVER_PERSIST_VALUE
NEVER_PERSIST = 138646241;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends c : BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends.values()) System.out.println(c);
- 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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
-
-