Class SingleQueryTransactionConfigBuilder
A subset Transaction Configuration options relevant to single-query transactions.
Inherited Members
Namespace: Couchbase.Client.Transactions.Config
Assembly: Couchbase.NetClient.dll
Syntax
public class SingleQueryTransactionConfigBuilder
Properties
| Edit this page View SourceDurabilityLevelValue
Gets or sets the Durability Level for this single query transaction.
Declaration
public DurabilityLevel? DurabilityLevelValue { get; }
Property Value
Type | Description |
---|---|
Durability |
QueryOptionsValue
Gets or sets the query options for this single query transaction.
Declaration
public TransactionQueryOptions QueryOptionsValue { get; }
Property Value
Type | Description |
---|---|
Transaction |
TimeoutValue
Gets or sets the relative expiration time for this single query transaction.
Declaration
public TimeSpan? TimeoutValue { get; }
Property Value
Type | Description |
---|---|
Time |
Methods
| Edit this page View SourceCreate()
Create a default SingleQueryTransactionConfigBuilder.
Declaration
public static SingleQueryTransactionConfigBuilder Create()
Returns
Type | Description |
---|---|
Single |
A default instance of this type. |
DurabilityLevel(DurabilityLevel)
Set the durability for this transaction.
Declaration
public SingleQueryTransactionConfigBuilder DurabilityLevel(DurabilityLevel durability)
Parameters
Type | Name | Description |
---|---|---|
Durability |
durability | The durability level to use. |
Returns
Type | Description |
---|---|
Single |
The builder. |
QueryOptions(TransactionQueryOptions)
Set the query-specific options for this transaction.
Declaration
public SingleQueryTransactionConfigBuilder QueryOptions(TransactionQueryOptions options)
Parameters
Type | Name | Description |
---|---|---|
Transaction |
options | The transaction query options to use. |
Returns
Type | Description |
---|---|
Single |
The builder. |
QueryOptions(Action<TransactionQueryOptions>)
Configure the query-specific options for this transaction.
Declaration
public SingleQueryTransactionConfigBuilder QueryOptions(Action<TransactionQueryOptions> configure)
Parameters
Type | Name | Description |
---|---|---|
Action<Transaction |
configure | An Action to configure the query options. |
Returns
Type | Description |
---|---|
Single |
The builder. |
Timeout(TimeSpan)
Set the timeout of this transaction.
Declaration
public SingleQueryTransactionConfigBuilder Timeout(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
Time |
timeout | The expiration time, relative to now. |
Returns
Type | Description |
---|---|
Single |
The builder. |