public static enum CommandLineOptions.DrainStrategy extends Enum<CommandLineOptions.DrainStrategy> implements com.google.protobuf.ProtocolMessageEnum
envoy.admin.v4alpha.CommandLineOptions.DrainStrategy| Enum Constant and Description |
|---|
Gradual
Gradually discourage connections over the course of the drain period.
|
Immediate
Discourage all connections for the duration of the drain sequence.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
Gradual_VALUE
Gradually discourage connections over the course of the drain period.
|
static int |
Immediate_VALUE
Discourage all connections for the duration of the drain sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static CommandLineOptions.DrainStrategy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CommandLineOptions.DrainStrategy> |
internalGetValueMap() |
static CommandLineOptions.DrainStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CommandLineOptions.DrainStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CommandLineOptions.DrainStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandLineOptions.DrainStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLineOptions.DrainStrategy Gradual
Gradually discourage connections over the course of the drain period.
Gradual = 0;public static final CommandLineOptions.DrainStrategy Immediate
Discourage all connections for the duration of the drain sequence.
Immediate = 1;public static final CommandLineOptions.DrainStrategy UNRECOGNIZED
public static final int Gradual_VALUE
Gradually discourage connections over the course of the drain period.
Gradual = 0;public static final int Immediate_VALUE
Discourage all connections for the duration of the drain sequence.
Immediate = 1;public static CommandLineOptions.DrainStrategy[] values()
for (CommandLineOptions.DrainStrategy c : CommandLineOptions.DrainStrategy.values()) System.out.println(c);
public static CommandLineOptions.DrainStrategy 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 CommandLineOptions.DrainStrategy valueOf(int value)
forNumber(int) instead.public static CommandLineOptions.DrainStrategy forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<CommandLineOptions.DrainStrategy> 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 CommandLineOptions.DrainStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.