Click or drag to resize

TransactionConfigBuilderWithTimeout Method

Sets the transaction timeout. Transactions that execute longer than the configured timeout will be terminated by the database. This functionality allows to limit query/transaction execution time. Specified timeout overrides the default timeout configured in the database using
dbms.transaction.timeout
setting. Leave this field unmodified to use default timeout configured on database.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public TransactionConfigBuilder WithTimeout(
	TimeSpan timeout
)

Parameters

timeout
Type: SystemTimeSpan
the new timeout

Return Value

Type: TransactionConfigBuilder
this TransactionConfigBuilder instance
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf the value given to transaction timeout in milliseconds is less or equal to zero
See Also