接口的使用
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中的方法修饰符和类型方法说明MessageAcknowledger.acknowledgeAsync(List<MessageId> messageIdList, Transaction txn) The asynchronous version ofMessageAcknowledger.acknowledge(List)with transaction support.MessageAcknowledger.acknowledgeAsync(MessageId messageId, Transaction txn) The asynchronous version ofMessageAcknowledger.acknowledge(MessageId)with transaction support.MessageAcknowledger.acknowledgeAsync(Messages<?> messages, Transaction txn) The asynchronous version ofMessageAcknowledger.acknowledge(Messages)with transaction support.MessageAcknowledger.acknowledgeCumulativeAsync(MessageId messageId, Transaction txn) The asynchronous version ofMessageAcknowledger.acknowledgeCumulative(MessageId)with transaction support.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中的方法