Enum 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 enum streamlayer.common.FailoverStrategy
    • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.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 name
        java.lang.NullPointerException - if the argument is null
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<FailoverStrategy> internalGetValueMap()
      • internalGetVerifier

        public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()