Click or drag to resize

TransactionConfigBuilder Class

The builder to create a TransactionConfig
Inheritance Hierarchy
SystemObject
  Neo4j.DriverTransactionConfigBuilder

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public sealed class TransactionConfigBuilder

The TransactionConfigBuilder type exposes the following members.

Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodWithMetadata
The transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output of
dbms.listQueries
and
dbms.listTransactions
procedures. It will also get logged to the
query.log
. Transactions starting with this TransactionConfig This functionality makes it easier to tag transactions and is equivalent to
dbms.setTXMetaData
procedure. Leave this field unmodified to use default timeout configured on database.
Public methodWithTimeout
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.
Top
See Also