Couchbase .NET SDK | 3.7.2
Search Results for

    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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Client.Transactions.Config
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class PerTransactionConfigBuilder

    Methods

    | Edit this page View Source

    Build()

    Build a PerTransactionConfig from this builder.

    Declaration
    public PerTransactionConfig Build()
    Returns
    Type Description
    PerTransactionConfig

    A completed config.

    | Edit this page View Source

    Create()

    Create an instance of the PerTransactionConfigBuilder class.

    Declaration
    public static PerTransactionConfigBuilder Create()
    Returns
    Type Description
    PerTransactionConfigBuilder
    | Edit this page 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.

    | Edit this page 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.

    | Edit this page 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

    | Edit this page 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.

    | Edit this page 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.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.