接口的使用
org.apache.pulsar.client.api.transaction.Transaction
-
使用Transaction的程序包 程序包 说明 org.apache.pulsar.client.api Pulsar Client API.org.apache.pulsar.client.api.transaction Pulsar transaction related API. -
-
org.apache.pulsar.client.api中Transaction的使用
参数类型为Transaction的org.apache.pulsar.client.api中的方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<java.lang.Void>Consumer. acknowledgeAsync(MessageId messageId, Transaction txn)Asynchronously acknowledge the consumption of a single message, it will store in pending ack.java.util.concurrent.CompletableFuture<java.lang.Void>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.TypedMessageBuilder<T>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中的方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<Transaction>TransactionBuilder. build()Build the transaction with the configured settings.
-