Enum CommandLookupTopicResponse.LookupType
- java.lang.Object
-
- java.lang.Enum<CommandLookupTopicResponse.LookupType>
-
- org.apache.pulsar.common.api.proto.CommandLookupTopicResponse.LookupType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommandLookupTopicResponse.LookupType>
- Enclosing class:
- CommandLookupTopicResponse
public static enum CommandLookupTopicResponse.LookupType extends java.lang.Enum<CommandLookupTopicResponse.LookupType>
-
-
Field Summary
Fields Modifier and Type Field Description static int
Connect_VALUE
static int
Failed_VALUE
static int
Redirect_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static CommandLookupTopicResponse.LookupType
valueOf(int n)
Returns the enum constant of this type with the specified name.static CommandLookupTopicResponse.LookupType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommandLookupTopicResponse.LookupType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Redirect
public static final CommandLookupTopicResponse.LookupType Redirect
-
Connect
public static final CommandLookupTopicResponse.LookupType Connect
-
Failed
public static final CommandLookupTopicResponse.LookupType Failed
-
-
Field Detail
-
Redirect_VALUE
public static final int Redirect_VALUE
- See Also:
- Constant Field Values
-
Connect_VALUE
public static final int Connect_VALUE
- See Also:
- Constant Field Values
-
Failed_VALUE
public static final int Failed_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CommandLookupTopicResponse.LookupType[] 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 (CommandLookupTopicResponse.LookupType c : CommandLookupTopicResponse.LookupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLookupTopicResponse.LookupType 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 CommandLookupTopicResponse.LookupType 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
-
-