Enum CommandGetTopicsOfNamespace.Mode
- java.lang.Object
-
- java.lang.Enum<CommandGetTopicsOfNamespace.Mode>
-
- org.apache.pulsar.common.api.proto.CommandGetTopicsOfNamespace.Mode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CommandGetTopicsOfNamespace.Mode>
- Enclosing class:
- CommandGetTopicsOfNamespace
public static enum CommandGetTopicsOfNamespace.Mode extends java.lang.Enum<CommandGetTopicsOfNamespace.Mode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLNON_PERSISTENTPERSISTENT
-
Field Summary
Fields Modifier and Type Field Description static intALL_VALUEstatic intNON_PERSISTENT_VALUEstatic intPERSISTENT_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static CommandGetTopicsOfNamespace.ModevalueOf(int n)Returns the enum constant of this type with the specified name.static CommandGetTopicsOfNamespace.ModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CommandGetTopicsOfNamespace.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERSISTENT
public static final CommandGetTopicsOfNamespace.Mode PERSISTENT
-
NON_PERSISTENT
public static final CommandGetTopicsOfNamespace.Mode NON_PERSISTENT
-
ALL
public static final CommandGetTopicsOfNamespace.Mode ALL
-
-
Field Detail
-
PERSISTENT_VALUE
public static final int PERSISTENT_VALUE
- See Also:
- Constant Field Values
-
NON_PERSISTENT_VALUE
public static final int NON_PERSISTENT_VALUE
- See Also:
- Constant Field Values
-
ALL_VALUE
public static final int ALL_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CommandGetTopicsOfNamespace.Mode[] 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 (CommandGetTopicsOfNamespace.Mode c : CommandGetTopicsOfNamespace.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandGetTopicsOfNamespace.Mode 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
-
getValue
public int getValue()
-
valueOf
public static CommandGetTopicsOfNamespace.Mode valueOf(int n)
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:
n- 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
-
-