接口的使用
org.apache.pulsar.client.api.transaction.Transaction
使用Transaction的程序包
程序包
说明
Pulsar Client API.
Pulsar transaction related API.
-
org.apache.pulsar.client.api中Transaction的使用
参数类型为Transaction的org.apache.pulsar.client.api中的方法修饰符和类型方法说明Consumer.acknowledgeAsync(MessageId messageId, Transaction txn) Asynchronously acknowledge the consumption of a single message, it will store in pending ack.Consumer.acknowledgeCumulativeAsync(MessageId messageId, Transaction txn) Acknowledge the reception of all the messages in the stream up to (and including) the provided message with this transaction, it will store in transaction pending ack.Producer.newMessage(Transaction txn) Create a new message builder with transaction. -
org.apache.pulsar.client.api.transaction中Transaction的使用
返回变量类型为Transaction的类型的org.apache.pulsar.client.api.transaction中的方法