public interface TransactionBuilder
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Transaction> |
build()
Build the transaction with the configured settings.
|
TransactionBuilder |
withTransactionTimeout(long timeout,
TimeUnit timeoutUnit)
Configure the maximum amount of time that the transaction
coordinator will for a transaction to be completed by the
client before proactively aborting the ongoing transaction.
|
TransactionBuilder withTransactionTimeout(long timeout, TimeUnit timeoutUnit)
The config value will be sent to the transaction coordinator along with the CommandNewTxn. Default is 60 seconds.
timeout
- the transaction timeout valuetimeoutUnit
- the transaction timeout unitCompletableFuture<Transaction> build()
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.