Enum BaseCommand.Type
- java.lang.Object
-
- java.lang.Enum<BaseCommand.Type>
-
- org.apache.pulsar.common.api.proto.BaseCommand.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseCommand.Type>
- Enclosing class:
- BaseCommand
public static enum BaseCommand.Type extends java.lang.Enum<BaseCommand.Type>
-
-
Enum Constant Summary
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static BaseCommand.Type
valueOf(int n)
Returns the enum constant of this type with the specified name.static BaseCommand.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseCommand.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECT
public static final BaseCommand.Type CONNECT
-
CONNECTED
public static final BaseCommand.Type CONNECTED
-
SUBSCRIBE
public static final BaseCommand.Type SUBSCRIBE
-
PRODUCER
public static final BaseCommand.Type PRODUCER
-
SEND
public static final BaseCommand.Type SEND
-
SEND_RECEIPT
public static final BaseCommand.Type SEND_RECEIPT
-
SEND_ERROR
public static final BaseCommand.Type SEND_ERROR
-
MESSAGE
public static final BaseCommand.Type MESSAGE
-
ACK
public static final BaseCommand.Type ACK
-
FLOW
public static final BaseCommand.Type FLOW
-
UNSUBSCRIBE
public static final BaseCommand.Type UNSUBSCRIBE
-
SUCCESS
public static final BaseCommand.Type SUCCESS
-
ERROR
public static final BaseCommand.Type ERROR
-
CLOSE_PRODUCER
public static final BaseCommand.Type CLOSE_PRODUCER
-
CLOSE_CONSUMER
public static final BaseCommand.Type CLOSE_CONSUMER
-
PRODUCER_SUCCESS
public static final BaseCommand.Type PRODUCER_SUCCESS
-
PING
public static final BaseCommand.Type PING
-
PONG
public static final BaseCommand.Type PONG
-
REDELIVER_UNACKNOWLEDGED_MESSAGES
public static final BaseCommand.Type REDELIVER_UNACKNOWLEDGED_MESSAGES
-
PARTITIONED_METADATA
public static final BaseCommand.Type PARTITIONED_METADATA
-
PARTITIONED_METADATA_RESPONSE
public static final BaseCommand.Type PARTITIONED_METADATA_RESPONSE
-
LOOKUP
public static final BaseCommand.Type LOOKUP
-
LOOKUP_RESPONSE
public static final BaseCommand.Type LOOKUP_RESPONSE
-
CONSUMER_STATS
public static final BaseCommand.Type CONSUMER_STATS
-
CONSUMER_STATS_RESPONSE
public static final BaseCommand.Type CONSUMER_STATS_RESPONSE
-
REACHED_END_OF_TOPIC
public static final BaseCommand.Type REACHED_END_OF_TOPIC
-
SEEK
public static final BaseCommand.Type SEEK
-
GET_LAST_MESSAGE_ID
public static final BaseCommand.Type GET_LAST_MESSAGE_ID
-
GET_LAST_MESSAGE_ID_RESPONSE
public static final BaseCommand.Type GET_LAST_MESSAGE_ID_RESPONSE
-
ACTIVE_CONSUMER_CHANGE
public static final BaseCommand.Type ACTIVE_CONSUMER_CHANGE
-
GET_TOPICS_OF_NAMESPACE
public static final BaseCommand.Type GET_TOPICS_OF_NAMESPACE
-
GET_TOPICS_OF_NAMESPACE_RESPONSE
public static final BaseCommand.Type GET_TOPICS_OF_NAMESPACE_RESPONSE
-
GET_SCHEMA
public static final BaseCommand.Type GET_SCHEMA
-
GET_SCHEMA_RESPONSE
public static final BaseCommand.Type GET_SCHEMA_RESPONSE
-
AUTH_CHALLENGE
public static final BaseCommand.Type AUTH_CHALLENGE
-
AUTH_RESPONSE
public static final BaseCommand.Type AUTH_RESPONSE
-
ACK_RESPONSE
public static final BaseCommand.Type ACK_RESPONSE
-
GET_OR_CREATE_SCHEMA
public static final BaseCommand.Type GET_OR_CREATE_SCHEMA
-
GET_OR_CREATE_SCHEMA_RESPONSE
public static final BaseCommand.Type GET_OR_CREATE_SCHEMA_RESPONSE
-
NEW_TXN
public static final BaseCommand.Type NEW_TXN
-
NEW_TXN_RESPONSE
public static final BaseCommand.Type NEW_TXN_RESPONSE
-
ADD_PARTITION_TO_TXN
public static final BaseCommand.Type ADD_PARTITION_TO_TXN
-
ADD_PARTITION_TO_TXN_RESPONSE
public static final BaseCommand.Type ADD_PARTITION_TO_TXN_RESPONSE
-
ADD_SUBSCRIPTION_TO_TXN
public static final BaseCommand.Type ADD_SUBSCRIPTION_TO_TXN
-
ADD_SUBSCRIPTION_TO_TXN_RESPONSE
public static final BaseCommand.Type ADD_SUBSCRIPTION_TO_TXN_RESPONSE
-
END_TXN
public static final BaseCommand.Type END_TXN
-
END_TXN_RESPONSE
public static final BaseCommand.Type END_TXN_RESPONSE
-
END_TXN_ON_PARTITION
public static final BaseCommand.Type END_TXN_ON_PARTITION
-
END_TXN_ON_PARTITION_RESPONSE
public static final BaseCommand.Type END_TXN_ON_PARTITION_RESPONSE
-
END_TXN_ON_SUBSCRIPTION
public static final BaseCommand.Type END_TXN_ON_SUBSCRIPTION
-
END_TXN_ON_SUBSCRIPTION_RESPONSE
public static final BaseCommand.Type END_TXN_ON_SUBSCRIPTION_RESPONSE
-
-
Field Detail
-
CONNECT_VALUE
public static final int CONNECT_VALUE
- See Also:
- Constant Field Values
-
CONNECTED_VALUE
public static final int CONNECTED_VALUE
- See Also:
- Constant Field Values
-
SUBSCRIBE_VALUE
public static final int SUBSCRIBE_VALUE
- See Also:
- Constant Field Values
-
PRODUCER_VALUE
public static final int PRODUCER_VALUE
- See Also:
- Constant Field Values
-
SEND_VALUE
public static final int SEND_VALUE
- See Also:
- Constant Field Values
-
SEND_RECEIPT_VALUE
public static final int SEND_RECEIPT_VALUE
- See Also:
- Constant Field Values
-
SEND_ERROR_VALUE
public static final int SEND_ERROR_VALUE
- See Also:
- Constant Field Values
-
MESSAGE_VALUE
public static final int MESSAGE_VALUE
- See Also:
- Constant Field Values
-
ACK_VALUE
public static final int ACK_VALUE
- See Also:
- Constant Field Values
-
FLOW_VALUE
public static final int FLOW_VALUE
- See Also:
- Constant Field Values
-
UNSUBSCRIBE_VALUE
public static final int UNSUBSCRIBE_VALUE
- See Also:
- Constant Field Values
-
SUCCESS_VALUE
public static final int SUCCESS_VALUE
- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
- See Also:
- Constant Field Values
-
CLOSE_PRODUCER_VALUE
public static final int CLOSE_PRODUCER_VALUE
- See Also:
- Constant Field Values
-
CLOSE_CONSUMER_VALUE
public static final int CLOSE_CONSUMER_VALUE
- See Also:
- Constant Field Values
-
PRODUCER_SUCCESS_VALUE
public static final int PRODUCER_SUCCESS_VALUE
- See Also:
- Constant Field Values
-
PING_VALUE
public static final int PING_VALUE
- See Also:
- Constant Field Values
-
PONG_VALUE
public static final int PONG_VALUE
- See Also:
- Constant Field Values
-
REDELIVER_UNACKNOWLEDGED_MESSAGES_VALUE
public static final int REDELIVER_UNACKNOWLEDGED_MESSAGES_VALUE
- See Also:
- Constant Field Values
-
PARTITIONED_METADATA_VALUE
public static final int PARTITIONED_METADATA_VALUE
- See Also:
- Constant Field Values
-
PARTITIONED_METADATA_RESPONSE_VALUE
public static final int PARTITIONED_METADATA_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
LOOKUP_VALUE
public static final int LOOKUP_VALUE
- See Also:
- Constant Field Values
-
LOOKUP_RESPONSE_VALUE
public static final int LOOKUP_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
CONSUMER_STATS_VALUE
public static final int CONSUMER_STATS_VALUE
- See Also:
- Constant Field Values
-
CONSUMER_STATS_RESPONSE_VALUE
public static final int CONSUMER_STATS_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
REACHED_END_OF_TOPIC_VALUE
public static final int REACHED_END_OF_TOPIC_VALUE
- See Also:
- Constant Field Values
-
SEEK_VALUE
public static final int SEEK_VALUE
- See Also:
- Constant Field Values
-
GET_LAST_MESSAGE_ID_VALUE
public static final int GET_LAST_MESSAGE_ID_VALUE
- See Also:
- Constant Field Values
-
GET_LAST_MESSAGE_ID_RESPONSE_VALUE
public static final int GET_LAST_MESSAGE_ID_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
ACTIVE_CONSUMER_CHANGE_VALUE
public static final int ACTIVE_CONSUMER_CHANGE_VALUE
- See Also:
- Constant Field Values
-
GET_TOPICS_OF_NAMESPACE_VALUE
public static final int GET_TOPICS_OF_NAMESPACE_VALUE
- See Also:
- Constant Field Values
-
GET_TOPICS_OF_NAMESPACE_RESPONSE_VALUE
public static final int GET_TOPICS_OF_NAMESPACE_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
GET_SCHEMA_VALUE
public static final int GET_SCHEMA_VALUE
- See Also:
- Constant Field Values
-
GET_SCHEMA_RESPONSE_VALUE
public static final int GET_SCHEMA_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
AUTH_CHALLENGE_VALUE
public static final int AUTH_CHALLENGE_VALUE
- See Also:
- Constant Field Values
-
AUTH_RESPONSE_VALUE
public static final int AUTH_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
ACK_RESPONSE_VALUE
public static final int ACK_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
GET_OR_CREATE_SCHEMA_VALUE
public static final int GET_OR_CREATE_SCHEMA_VALUE
- See Also:
- Constant Field Values
-
GET_OR_CREATE_SCHEMA_RESPONSE_VALUE
public static final int GET_OR_CREATE_SCHEMA_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
NEW_TXN_VALUE
public static final int NEW_TXN_VALUE
- See Also:
- Constant Field Values
-
NEW_TXN_RESPONSE_VALUE
public static final int NEW_TXN_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
ADD_PARTITION_TO_TXN_VALUE
public static final int ADD_PARTITION_TO_TXN_VALUE
- See Also:
- Constant Field Values
-
ADD_PARTITION_TO_TXN_RESPONSE_VALUE
public static final int ADD_PARTITION_TO_TXN_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
ADD_SUBSCRIPTION_TO_TXN_VALUE
public static final int ADD_SUBSCRIPTION_TO_TXN_VALUE
- See Also:
- Constant Field Values
-
ADD_SUBSCRIPTION_TO_TXN_RESPONSE_VALUE
public static final int ADD_SUBSCRIPTION_TO_TXN_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
END_TXN_VALUE
public static final int END_TXN_VALUE
- See Also:
- Constant Field Values
-
END_TXN_RESPONSE_VALUE
public static final int END_TXN_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
END_TXN_ON_PARTITION_VALUE
public static final int END_TXN_ON_PARTITION_VALUE
- See Also:
- Constant Field Values
-
END_TXN_ON_PARTITION_RESPONSE_VALUE
public static final int END_TXN_ON_PARTITION_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
END_TXN_ON_SUBSCRIPTION_VALUE
public static final int END_TXN_ON_SUBSCRIPTION_VALUE
- See Also:
- Constant Field Values
-
END_TXN_ON_SUBSCRIPTION_RESPONSE_VALUE
public static final int END_TXN_ON_SUBSCRIPTION_RESPONSE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BaseCommand.Type[] 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 (BaseCommand.Type c : BaseCommand.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseCommand.Type 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 BaseCommand.Type 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
-
-