Class TransactionFinished
- java.lang.Object
-
- org.apache.flink.connector.kafka.sink.internal.TransactionFinished
-
@Internal public class TransactionFinished extends Object
Represents the end of a transaction. This event is sent from the committer to the writer to signal that the transaction with the given id has finished. The writer then recycles the producer with the given id if the transaction was successfully committed.
-
-
Constructor Summary
Constructors Constructor Description TransactionFinished(String transactionId, boolean success)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)static TransactionFinishederroneously(String transactionalId)StringgetTransactionId()inthashCode()booleanisSuccess()static TransactionFinishedsuccessful(String transactionalId)StringtoString()
-
-
-
Constructor Detail
-
TransactionFinished
public TransactionFinished(String transactionId, boolean success)
-
-
Method Detail
-
successful
public static TransactionFinished successful(String transactionalId)
-
erroneously
public static TransactionFinished erroneously(String transactionalId)
-
getTransactionId
public String getTransactionId()
-
isSuccess
public boolean isSuccess()
-
-