Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class PerTransactionConfigBuilder

A builder class for generating PerTransactionConfigs to be used for individual transactions.

Inheritance
object
PerTransactionConfigBuilder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Client.Transactions.Config
Assembly: Couchbase.NetClient.dll
Syntax
public class PerTransactionConfigBuilder

Methods

View Source

Build()

Build a PerTransactionConfig from this builder.

Declaration
public PerTransactionConfig Build()
Returns
Type Description
PerTransactionConfig

A completed config.

View Source

Create()

Create an instance of the PerTransactionConfigBuilder class.

Declaration
public static PerTransactionConfigBuilder Create()
Returns
Type Description
PerTransactionConfigBuilder
View Source

DurabilityLevel(DurabilityLevel)

Set the minimum desired DurabilityLevel(DurabilityLevel).

Declaration
public PerTransactionConfigBuilder DurabilityLevel(DurabilityLevel durabilityLevel)
Parameters
Type Name Description
DurabilityLevel durabilityLevel

The DurabilityLevel(DurabilityLevel) desired.

Returns
Type Description
PerTransactionConfigBuilder

The continued instance of this builder.

View Source

KeyValueTimeout(TimeSpan?)

Sets an option value indicating the timeout on Couchbase Key/Value operations for this transaction.

Declaration
public PerTransactionConfigBuilder KeyValueTimeout(TimeSpan? keyValueTimeout)
Parameters
Type Name Description
TimeSpan? keyValueTimeout

The timeout on Couchbase Key/Value operations for this transaction

Returns
Type Description
PerTransactionConfigBuilder

The continued instance of this builder.

View Source

MetadataCollection(Keyspace)

Sets the collection where the transactional metadata will be placed. This is then added to the set of collections that Transactions will clean periodically.

Declaration
public PerTransactionConfigBuilder MetadataCollection(Keyspace metadataCollection)
Parameters
Type Name Description
Keyspace metadataCollection

The collection to use to store the transaction metadata

Returns
Type Description
PerTransactionConfigBuilder

The continued instance of this builder

View Source

QueryConfig(PerTransactionQueryConfig)

Sets the per-transaction specific query options.

Declaration
public PerTransactionConfigBuilder QueryConfig(PerTransactionQueryConfig perTransactionQueryConfig)
Parameters
Type Name Description
PerTransactionQueryConfig perTransactionQueryConfig

The per-transaction specific query options.

Returns
Type Description
PerTransactionConfigBuilder

The continued instance of this builder.

View Source

Timeout(TimeSpan?)

Sets an optional value indicating the relative expiration time of the transaction for this transaction.

Declaration
public PerTransactionConfigBuilder Timeout(TimeSpan? timeout)
Parameters
Type Name Description
TimeSpan? timeout

The relative expiration time of the transaction for this transaction

Returns
Type Description
PerTransactionConfigBuilder

The continued instance of this builder.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.