| TransactionOptionsSetDurability Method |
Sets the transaction durability.
Namespace:
Hazelcast.Transaction
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax public TransactionOptions SetDurability(
int durability
)
Public Function SetDurability (
durability As Integer
) As TransactionOptions
public:
TransactionOptions^ SetDurability(
int durability
)
member SetDurability :
durability : int -> TransactionOptions
Parameters
- durability
- Type: SystemInt32
the durability
Return Value
Type:
TransactionOptionsthe updated TransactionOptions.
Exceptions Exception | Condition |
---|
ArgumentException | if durability smaller than 0. |
Remarks
Sets the transaction durability.
The durability is the number of machines that can take over if a member fails during a transaction
commit or rollback. This value only has meaning when
TransactionType.TwoPhase
is selected.
See Also