Package com.streamlayer.common
Enum FailoverStrategy
- java.lang.Object
-
- java.lang.Enum<FailoverStrategy>
-
- com.streamlayer.common.FailoverStrategy
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<FailoverStrategy>
public enum FailoverStrategy extends java.lang.Enum<FailoverStrategy> implements com.google.protobuf.Internal.EnumLite
Protobuf enumstreamlayer.common.FailoverStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILOVER_STRATEGY_EARLYclose a stream on an errorFAILOVER_STRATEGY_GRACEnotify about an error, but keep stream open and handle other callsFAILOVER_STRATEGY_IGNOREignore errorsFAILOVER_STRATEGY_INVALIDFAILOVER_STRATEGY_INVALID = 0;FAILOVER_STRATEGY_UNSETFAILOVER_STRATEGY_UNSET = 1;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFAILOVER_STRATEGY_EARLY_VALUEclose a stream on an errorstatic intFAILOVER_STRATEGY_GRACE_VALUEnotify about an error, but keep stream open and handle other callsstatic intFAILOVER_STRATEGY_IGNORE_VALUEignore errorsstatic intFAILOVER_STRATEGY_INVALID_VALUEFAILOVER_STRATEGY_INVALID = 0;static intFAILOVER_STRATEGY_UNSET_VALUEFAILOVER_STRATEGY_UNSET = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FailoverStrategyforNumber(int value)intgetNumber()static com.google.protobuf.Internal.EnumLiteMap<FailoverStrategy>internalGetValueMap()static com.google.protobuf.Internal.EnumVerifierinternalGetVerifier()static FailoverStrategyvalueOf(int value)Deprecated.static FailoverStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FailoverStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILOVER_STRATEGY_INVALID
public static final FailoverStrategy FAILOVER_STRATEGY_INVALID
FAILOVER_STRATEGY_INVALID = 0;
-
FAILOVER_STRATEGY_UNSET
public static final FailoverStrategy FAILOVER_STRATEGY_UNSET
FAILOVER_STRATEGY_UNSET = 1;
-
FAILOVER_STRATEGY_IGNORE
public static final FailoverStrategy FAILOVER_STRATEGY_IGNORE
ignore errors
FAILOVER_STRATEGY_IGNORE = 2;
-
FAILOVER_STRATEGY_EARLY
public static final FailoverStrategy FAILOVER_STRATEGY_EARLY
close a stream on an error
FAILOVER_STRATEGY_EARLY = 3;
-
FAILOVER_STRATEGY_GRACE
public static final FailoverStrategy FAILOVER_STRATEGY_GRACE
notify about an error, but keep stream open and handle other calls
FAILOVER_STRATEGY_GRACE = 4;
-
UNRECOGNIZED
public static final FailoverStrategy UNRECOGNIZED
-
-
Field Detail
-
FAILOVER_STRATEGY_INVALID_VALUE
public static final int FAILOVER_STRATEGY_INVALID_VALUE
FAILOVER_STRATEGY_INVALID = 0;- See Also:
- Constant Field Values
-
FAILOVER_STRATEGY_UNSET_VALUE
public static final int FAILOVER_STRATEGY_UNSET_VALUE
FAILOVER_STRATEGY_UNSET = 1;- See Also:
- Constant Field Values
-
FAILOVER_STRATEGY_IGNORE_VALUE
public static final int FAILOVER_STRATEGY_IGNORE_VALUE
ignore errors
FAILOVER_STRATEGY_IGNORE = 2;- See Also:
- Constant Field Values
-
FAILOVER_STRATEGY_EARLY_VALUE
public static final int FAILOVER_STRATEGY_EARLY_VALUE
close a stream on an error
FAILOVER_STRATEGY_EARLY = 3;- See Also:
- Constant Field Values
-
FAILOVER_STRATEGY_GRACE_VALUE
public static final int FAILOVER_STRATEGY_GRACE_VALUE
notify about an error, but keep stream open and handle other calls
FAILOVER_STRATEGY_GRACE = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FailoverStrategy[] 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 (FailoverStrategy c : FailoverStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FailoverStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
@Deprecated public static FailoverStrategy 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static FailoverStrategy forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<FailoverStrategy> internalGetValueMap()
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-
-