TransactionOptionsSetTimeout Method Hazelcast .Net Client Class Library
Sets the timeout.

Namespace: Hazelcast.Transaction
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
Syntax

public TransactionOptions SetTimeout(
	long timeout,
	TimeUnit timeUnit
)

Parameters

timeout
Type: SystemInt64
the timeout.
timeUnit
Type: Hazelcast.CoreTimeUnit
the TimeUnit of the timeout.

Return Value

Type: TransactionOptions
the updated TransactionOptions
Exceptions

ExceptionCondition
ArgumentExceptionif timeout smaller or equal than 0, or timeUnit is null.
Remarks

Sets the timeout. The timeout determines the maximum lifespan of a transaction. So if a transaction is configured with a timeout of 2 minutes, then it will automatically rollback if it hasn't committed yet.
See Also

Reference