@Internal public enum KafkaSinkSemantic extends Enum<KafkaSinkSemantic>
Enum Constant and Description |
---|
AT_LEAST_ONCE
Semantic.AT_LEAST_ONCE the Flink producer will wait for all outstanding messages in the Kafka
buffers to be acknowledged by the Kafka producer on a checkpoint.
|
EXACTLY_ONCE
Semantic.EXACTLY_ONCE the Flink producer will write all messages in a Kafka transaction that
will be committed to Kafka on a checkpoint.
|
NONE
Semantic.NONE means that nothing will be guaranteed.
|
Modifier and Type | Method and Description |
---|---|
static KafkaSinkSemantic |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KafkaSinkSemantic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaSinkSemantic EXACTLY_ONCE
public static final KafkaSinkSemantic AT_LEAST_ONCE
public static final KafkaSinkSemantic NONE
public static KafkaSinkSemantic[] values()
for (KafkaSinkSemantic c : KafkaSinkSemantic.values()) System.out.println(c);
public static KafkaSinkSemantic 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 nullCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.