Class KafkaWriterState
- java.lang.Object
-
- org.apache.flink.connector.kafka.sink.KafkaWriterState
-
@Internal public class KafkaWriterState extends Object
The state of the Kafka writer. Used to capture information regarding transactions.
-
-
Field Summary
Fields Modifier and Type Field Description static intUNKNOWN
-
Constructor Summary
Constructors Constructor Description KafkaWriterState(String transactionalIdPrefix, int ownedSubtaskId, int totalNumberOfOwnedSubtasks, TransactionOwnership transactionOwnership, Collection<CheckpointTransaction> precommittedTransactionalIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)intgetOwnedSubtaskId()Collection<CheckpointTransaction>getPrecommittedTransactionalIds()intgetTotalNumberOfOwnedSubtasks()StringgetTransactionalIdPrefix()TransactionOwnershipgetTransactionOwnership()inthashCode()StringtoString()
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KafkaWriterState
@VisibleForTesting public KafkaWriterState(String transactionalIdPrefix, int ownedSubtaskId, int totalNumberOfOwnedSubtasks, TransactionOwnership transactionOwnership, Collection<CheckpointTransaction> precommittedTransactionalIds)
-
-
Method Detail
-
getTransactionalIdPrefix
public String getTransactionalIdPrefix()
-
getOwnedSubtaskId
public int getOwnedSubtaskId()
-
getTotalNumberOfOwnedSubtasks
public int getTotalNumberOfOwnedSubtasks()
-
getPrecommittedTransactionalIds
public Collection<CheckpointTransaction> getPrecommittedTransactionalIds()
-
getTransactionOwnership
public TransactionOwnership getTransactionOwnership()
-
-