Package org.opennms.smoketest.stacks
Enum KafkaCompressionStrategy
- java.lang.Object
-
- java.lang.Enum<KafkaCompressionStrategy>
-
- org.opennms.smoketest.stacks.KafkaCompressionStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<KafkaCompressionStrategy>
public enum KafkaCompressionStrategy extends Enum<KafkaCompressionStrategy>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KafkaCompressionStrategy
get(String codec)
String
getCodec()
static KafkaCompressionStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static KafkaCompressionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GZIP
public static final KafkaCompressionStrategy GZIP
-
SNAPPY
public static final KafkaCompressionStrategy SNAPPY
-
LZ4
public static final KafkaCompressionStrategy LZ4
-
ZSTD
public static final KafkaCompressionStrategy ZSTD
-
NONE
public static final KafkaCompressionStrategy NONE
-
-
Method Detail
-
values
public static KafkaCompressionStrategy[] 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 (KafkaCompressionStrategy c : KafkaCompressionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaCompressionStrategy 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 nameNullPointerException
- if the argument is null
-
getCodec
public String getCodec()
-
get
public static KafkaCompressionStrategy get(String codec)
-
-