storm.kafka
Enum KafkaError
java.lang.Object
java.lang.Enum<KafkaError>
storm.kafka.KafkaError
- All Implemented Interfaces:
- Serializable, Comparable<KafkaError>
public enum KafkaError
- extends Enum<KafkaError>
NO_ERROR
public static final KafkaError NO_ERROR
OFFSET_OUT_OF_RANGE
public static final KafkaError OFFSET_OUT_OF_RANGE
INVALID_MESSAGE
public static final KafkaError INVALID_MESSAGE
UNKNOWN_TOPIC_OR_PARTITION
public static final KafkaError UNKNOWN_TOPIC_OR_PARTITION
INVALID_FETCH_SIZE
public static final KafkaError INVALID_FETCH_SIZE
LEADER_NOT_AVAILABLE
public static final KafkaError LEADER_NOT_AVAILABLE
NOT_LEADER_FOR_PARTITION
public static final KafkaError NOT_LEADER_FOR_PARTITION
REQUEST_TIMED_OUT
public static final KafkaError REQUEST_TIMED_OUT
BROKER_NOT_AVAILABLE
public static final KafkaError BROKER_NOT_AVAILABLE
REPLICA_NOT_AVAILABLE
public static final KafkaError REPLICA_NOT_AVAILABLE
MESSAGE_SIZE_TOO_LARGE
public static final KafkaError MESSAGE_SIZE_TOO_LARGE
STALE_CONTROLLER_EPOCH
public static final KafkaError STALE_CONTROLLER_EPOCH
OFFSET_METADATA_TOO_LARGE
public static final KafkaError OFFSET_METADATA_TOO_LARGE
UNKNOWN
public static final KafkaError UNKNOWN
values
public static KafkaError[] 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 (KafkaError c : KafkaError.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static KafkaError valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getError
public static KafkaError getError(int errorCode)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.