Enum TransactionNamingStrategyImpl
- java.lang.Object
-
- java.lang.Enum<TransactionNamingStrategyImpl>
-
- org.apache.flink.connector.kafka.sink.internal.TransactionNamingStrategyImpl
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionNamingStrategyImpl>
@Internal public enum TransactionNamingStrategyImpl extends Enum<TransactionNamingStrategyImpl>
Implementation ofTransactionNamingStrategy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransactionNamingStrategyImpl.ContextContext for the transaction naming strategy.
-
Enum Constant Summary
Enum Constants Enum Constant Description INCREMENTINGPOOLING
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TransactionOwnershipgetOwnership()abstract FlinkKafkaInternalProducer<byte[],byte[]>getTransactionalProducer(TransactionNamingStrategyImpl.Context context)Returns aFlinkKafkaInternalProducerthat will not clash with any ongoing transactions.booleanrequiresKnownTopics()static TransactionNamingStrategyImplvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionNamingStrategyImpl[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCREMENTING
public static final TransactionNamingStrategyImpl INCREMENTING
-
POOLING
public static final TransactionNamingStrategyImpl POOLING
-
-
Method Detail
-
values
public static TransactionNamingStrategyImpl[] 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 (TransactionNamingStrategyImpl c : TransactionNamingStrategyImpl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionNamingStrategyImpl 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
-
requiresKnownTopics
public boolean requiresKnownTopics()
-
getOwnership
public TransactionOwnership getOwnership()
-
getTransactionalProducer
public abstract FlinkKafkaInternalProducer<byte[],byte[]> getTransactionalProducer(TransactionNamingStrategyImpl.Context context)
Returns aFlinkKafkaInternalProducerthat will not clash with any ongoing transactions.
-
-