Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class SingleQueryTransactionConfigBuilder

A subset Transaction Configuration options relevant to single-query transactions.

Inheritance
object
SingleQueryTransactionConfigBuilder
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 SingleQueryTransactionConfigBuilder

Properties

View Source

DurabilityLevelValue

Gets or sets the Durability Level for this single query transaction.

Declaration
public DurabilityLevel? DurabilityLevelValue { get; }
Property Value
Type Description
DurabilityLevel?
View Source

QueryOptionsValue

Gets or sets the query options for this single query transaction.

Declaration
public TransactionQueryOptions QueryOptionsValue { get; }
Property Value
Type Description
TransactionQueryOptions
View Source

TimeoutValue

Gets or sets the relative expiration time for this single query transaction.

Declaration
public TimeSpan? TimeoutValue { get; }
Property Value
Type Description
TimeSpan?

Methods

View Source

Create()

Create a default SingleQueryTransactionConfigBuilder.

Declaration
public static SingleQueryTransactionConfigBuilder Create()
Returns
Type Description
SingleQueryTransactionConfigBuilder

A default instance of this type.

View Source

DurabilityLevel(DurabilityLevel)

Set the durability for this transaction.

Declaration
public SingleQueryTransactionConfigBuilder DurabilityLevel(DurabilityLevel durability)
Parameters
Type Name Description
DurabilityLevel durability

The durability level to use.

Returns
Type Description
SingleQueryTransactionConfigBuilder

The builder.

View Source

QueryOptions(TransactionQueryOptions)

Set the query-specific options for this transaction.

Declaration
public SingleQueryTransactionConfigBuilder QueryOptions(TransactionQueryOptions options)
Parameters
Type Name Description
TransactionQueryOptions options

The transaction query options to use.

Returns
Type Description
SingleQueryTransactionConfigBuilder

The builder.

View Source

QueryOptions(Action<TransactionQueryOptions>)

Configure the query-specific options for this transaction.

Declaration
public SingleQueryTransactionConfigBuilder QueryOptions(Action<TransactionQueryOptions> configure)
Parameters
Type Name Description
Action<TransactionQueryOptions> configure

An Action to configure the query options.

Returns
Type Description
SingleQueryTransactionConfigBuilder

The builder.

View Source

Timeout(TimeSpan)

Set the timeout of this transaction.

Declaration
public SingleQueryTransactionConfigBuilder Timeout(TimeSpan timeout)
Parameters
Type Name Description
TimeSpan timeout

The expiration time, relative to now.

Returns
Type Description
SingleQueryTransactionConfigBuilder

The builder.

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