public enum Log4jAvroHeaders extends Enum<Log4jAvroHeaders>
Enum Constant and Description |
---|
AVRO_SCHEMA_LITERAL |
AVRO_SCHEMA_URL |
LOG_LEVEL |
LOGGER_NAME |
MESSAGE_ENCODING |
OTHER |
TIMESTAMP |
Modifier and Type | Method and Description |
---|---|
static Log4jAvroHeaders |
getByName(String headerName) |
String |
getName() |
String |
toString() |
static Log4jAvroHeaders |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Log4jAvroHeaders[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Log4jAvroHeaders OTHER
public static final Log4jAvroHeaders LOGGER_NAME
public static final Log4jAvroHeaders LOG_LEVEL
public static final Log4jAvroHeaders MESSAGE_ENCODING
public static final Log4jAvroHeaders TIMESTAMP
public static final Log4jAvroHeaders AVRO_SCHEMA_LITERAL
public static final Log4jAvroHeaders AVRO_SCHEMA_URL
public static Log4jAvroHeaders[] values()
for (Log4jAvroHeaders c : Log4jAvroHeaders.values()) System.out.println(c);
public static Log4jAvroHeaders valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String toString()
toString
in class Enum<Log4jAvroHeaders>
public static Log4jAvroHeaders getByName(String headerName)
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.