public class PerTransactionConfigBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PerTransactionConfig |
build()
Converts this mutable instance into an immutable
PerTransactionConfig that's ready to be used with
Transactions . |
static PerTransactionConfigBuilder |
create()
Returns a new
PerTransactionConfigBuilder , which can be used to build up and create a
PerTransactionConfig . |
PerTransactionConfigBuilder |
durabilityLevel(TransactionDurabilityLevel durabilityLevel)
Overrides the default
TransactionConfigBuilder.durabilityLevel(TransactionDurabilityLevel) set, for this
transaction. |
public static PerTransactionConfigBuilder create()
PerTransactionConfigBuilder
, which can be used to build up and create a
PerTransactionConfig
.public PerTransactionConfig build()
PerTransactionConfig
that's ready to be used with
Transactions
.public PerTransactionConfigBuilder durabilityLevel(TransactionDurabilityLevel durabilityLevel)
TransactionConfigBuilder.durabilityLevel(TransactionDurabilityLevel)
set, for this
transaction. The level will be used for all operations inside the transaction.durabilityLevel
- the durability level to set