Sets the transaction durability.
Namespace: Hazelcast.TransactionAssembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
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.
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.
Reference