Enum ServerError
- java.lang.Object
-
- java.lang.Enum<ServerError>
-
- org.apache.pulsar.common.api.proto.ServerError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ServerError>
public enum ServerError extends java.lang.Enum<ServerError>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static intAuthenticationError_VALUEstatic intAuthorizationError_VALUEstatic intChecksumError_VALUEstatic intConsumerAssignError_VALUEstatic intConsumerBusy_VALUEstatic intConsumerNotFound_VALUEstatic intIncompatibleSchema_VALUEstatic intInvalidTopicName_VALUEstatic intInvalidTxnStatus_VALUEstatic intMetadataError_VALUEstatic intNotAllowedError_VALUEstatic intPersistenceError_VALUEstatic intProducerBlockedQuotaExceededError_VALUEstatic intProducerBlockedQuotaExceededException_VALUEstatic intProducerBusy_VALUEstatic intProducerFenced_VALUEstatic intServiceNotReady_VALUEstatic intSubscriptionNotFound_VALUEstatic intTooManyRequests_VALUEstatic intTopicNotFound_VALUEstatic intTopicTerminatedError_VALUEstatic intTransactionConflict_VALUEstatic intTransactionCoordinatorNotFound_VALUEstatic intTransactionNotFound_VALUEstatic intUnknownError_VALUEstatic intUnsupportedVersionError_VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ServerErrorvalueOf(int n)Returns the enum constant of this type with the specified name.static ServerErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ServerError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UnknownError
public static final ServerError UnknownError
-
MetadataError
public static final ServerError MetadataError
-
PersistenceError
public static final ServerError PersistenceError
-
AuthenticationError
public static final ServerError AuthenticationError
-
AuthorizationError
public static final ServerError AuthorizationError
-
ConsumerBusy
public static final ServerError ConsumerBusy
-
ServiceNotReady
public static final ServerError ServiceNotReady
-
ProducerBlockedQuotaExceededError
public static final ServerError ProducerBlockedQuotaExceededError
-
ProducerBlockedQuotaExceededException
public static final ServerError ProducerBlockedQuotaExceededException
-
ChecksumError
public static final ServerError ChecksumError
-
UnsupportedVersionError
public static final ServerError UnsupportedVersionError
-
TopicNotFound
public static final ServerError TopicNotFound
-
SubscriptionNotFound
public static final ServerError SubscriptionNotFound
-
ConsumerNotFound
public static final ServerError ConsumerNotFound
-
TooManyRequests
public static final ServerError TooManyRequests
-
TopicTerminatedError
public static final ServerError TopicTerminatedError
-
ProducerBusy
public static final ServerError ProducerBusy
-
InvalidTopicName
public static final ServerError InvalidTopicName
-
IncompatibleSchema
public static final ServerError IncompatibleSchema
-
ConsumerAssignError
public static final ServerError ConsumerAssignError
-
TransactionCoordinatorNotFound
public static final ServerError TransactionCoordinatorNotFound
-
InvalidTxnStatus
public static final ServerError InvalidTxnStatus
-
NotAllowedError
public static final ServerError NotAllowedError
-
TransactionConflict
public static final ServerError TransactionConflict
-
TransactionNotFound
public static final ServerError TransactionNotFound
-
ProducerFenced
public static final ServerError ProducerFenced
-
-
Field Detail
-
UnknownError_VALUE
public static final int UnknownError_VALUE
- See Also:
- Constant Field Values
-
MetadataError_VALUE
public static final int MetadataError_VALUE
- See Also:
- Constant Field Values
-
PersistenceError_VALUE
public static final int PersistenceError_VALUE
- See Also:
- Constant Field Values
-
AuthenticationError_VALUE
public static final int AuthenticationError_VALUE
- See Also:
- Constant Field Values
-
AuthorizationError_VALUE
public static final int AuthorizationError_VALUE
- See Also:
- Constant Field Values
-
ConsumerBusy_VALUE
public static final int ConsumerBusy_VALUE
- See Also:
- Constant Field Values
-
ServiceNotReady_VALUE
public static final int ServiceNotReady_VALUE
- See Also:
- Constant Field Values
-
ProducerBlockedQuotaExceededError_VALUE
public static final int ProducerBlockedQuotaExceededError_VALUE
- See Also:
- Constant Field Values
-
ProducerBlockedQuotaExceededException_VALUE
public static final int ProducerBlockedQuotaExceededException_VALUE
- See Also:
- Constant Field Values
-
ChecksumError_VALUE
public static final int ChecksumError_VALUE
- See Also:
- Constant Field Values
-
UnsupportedVersionError_VALUE
public static final int UnsupportedVersionError_VALUE
- See Also:
- Constant Field Values
-
TopicNotFound_VALUE
public static final int TopicNotFound_VALUE
- See Also:
- Constant Field Values
-
SubscriptionNotFound_VALUE
public static final int SubscriptionNotFound_VALUE
- See Also:
- Constant Field Values
-
ConsumerNotFound_VALUE
public static final int ConsumerNotFound_VALUE
- See Also:
- Constant Field Values
-
TooManyRequests_VALUE
public static final int TooManyRequests_VALUE
- See Also:
- Constant Field Values
-
TopicTerminatedError_VALUE
public static final int TopicTerminatedError_VALUE
- See Also:
- Constant Field Values
-
ProducerBusy_VALUE
public static final int ProducerBusy_VALUE
- See Also:
- Constant Field Values
-
InvalidTopicName_VALUE
public static final int InvalidTopicName_VALUE
- See Also:
- Constant Field Values
-
IncompatibleSchema_VALUE
public static final int IncompatibleSchema_VALUE
- See Also:
- Constant Field Values
-
ConsumerAssignError_VALUE
public static final int ConsumerAssignError_VALUE
- See Also:
- Constant Field Values
-
TransactionCoordinatorNotFound_VALUE
public static final int TransactionCoordinatorNotFound_VALUE
- See Also:
- Constant Field Values
-
InvalidTxnStatus_VALUE
public static final int InvalidTxnStatus_VALUE
- See Also:
- Constant Field Values
-
NotAllowedError_VALUE
public static final int NotAllowedError_VALUE
- See Also:
- Constant Field Values
-
TransactionConflict_VALUE
public static final int TransactionConflict_VALUE
- See Also:
- Constant Field Values
-
TransactionNotFound_VALUE
public static final int TransactionNotFound_VALUE
- See Also:
- Constant Field Values
-
ProducerFenced_VALUE
public static final int ProducerFenced_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ServerError[] 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 (ServerError c : ServerError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerError 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 ServerError 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
-
-