| Package | Description |
|---|---|
| org.apache.pulsar.client.api.transaction |
Pulsar transaction related API.
|
| Modifier and Type | Method and Description |
|---|---|
TxnID |
Transaction.getTxnID()
Get TxnID of the transaction.
|
TxnID |
TransactionCoordinatorClient.newTransaction()
Create a new transaction.
|
TxnID |
TransactionCoordinatorClient.newTransaction(long timeout,
TimeUnit unit)
Create a new transaction.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<TxnID> |
TransactionBufferClient.abortTxnOnSubscription(String topic,
String subscription,
long txnIdMostBits,
long txnIdLeastBits,
long lowWaterMark)
Abort the transaction associated with the topic subscription.
|
CompletableFuture<TxnID> |
TransactionBufferClient.abortTxnOnTopic(String topic,
long txnIdMostBits,
long txnIdLeastBits,
long lowWaterMark)
Abort the transaction associated with the topic.
|
CompletableFuture<TxnID> |
TransactionBufferClient.commitTxnOnSubscription(String topic,
String subscription,
long txnIdMostBits,
long txnIdLeastBits,
long lowWaterMark)
Commit the transaction associated with the topic subscription.
|
CompletableFuture<TxnID> |
TransactionBufferClient.commitTxnOnTopic(String topic,
long txnIdMostBits,
long txnIdLeastBits,
long lowWaterMark)
Commit the transaction associated with the topic.
|
CompletableFuture<TxnID> |
TransactionCoordinatorClient.newTransactionAsync()
Create a new transaction asynchronously.
|
CompletableFuture<TxnID> |
TransactionCoordinatorClient.newTransactionAsync(long timeout,
TimeUnit unit)
Create a new transaction asynchronously.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TransactionCoordinatorClient.abort(TxnID txnID)
Abort txn.
|
CompletableFuture<Void> |
TransactionCoordinatorClient.abortAsync(TxnID txnID)
Abort txn asynchronously.
|
void |
TransactionCoordinatorClient.addPublishPartitionToTxn(TxnID txnID,
List<String> partitions)
Add publish partition to txn.
|
CompletableFuture<Void> |
TransactionCoordinatorClient.addPublishPartitionToTxnAsync(TxnID txnID,
List<String> partitions)
Add publish partition to txn asynchronously.
|
void |
TransactionCoordinatorClient.addSubscriptionToTxn(TxnID txnID,
String topic,
String subscription)
Add ack subscription to txn.
|
CompletableFuture<Void> |
TransactionCoordinatorClient.addSubscriptionToTxnAsync(TxnID txnID,
String topic,
String subscription)
Add ack subscription to txn asynchronously.
|
void |
TransactionCoordinatorClient.commit(TxnID txnID)
Commit txn.
|
CompletableFuture<Void> |
TransactionCoordinatorClient.commitAsync(TxnID txnID)
Commit txn asynchronously.
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.