Class SingleQueryTransactionConfigBuilder
A subset Transaction Configuration options relevant to single-query transactions.
Inherited Members
Namespace: Couchbase.Transactions.Config
Assembly: Couchbase.Transactions.dll
Syntax
public class SingleQueryTransactionConfigBuilder
Properties
| Improve this Doc View SourceDurabilityLevelValue
Gets or sets the Durability Level for this single query transaction.
Declaration
public DurabilityLevel? DurabilityLevelValue { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<Couchbase.KeyValue.DurabilityLevel> |
ExpirationTimeValue
Gets or sets the relative expiration time for this single query transaction.
Declaration
public TimeSpan? ExpirationTimeValue { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<TimeSpan> |
QueryOptionsValue
Gets or sets the query options for this single query transaction.
Declaration
public TransactionQueryOptions QueryOptionsValue { get; }
Property Value
| Type | Description |
|---|---|
| TransactionQueryOptions |
Methods
| Improve this Doc View SourceCreate()
Declaration
public static SingleQueryTransactionConfigBuilder Create()
Returns
| Type | Description |
|---|---|
| SingleQueryTransactionConfigBuilder |
DurabilityLevel(DurabilityLevel)
Set the durability for this transaction.
Declaration
public SingleQueryTransactionConfigBuilder DurabilityLevel(DurabilityLevel durability)
Parameters
| Type | Name | Description |
|---|---|---|
| Couchbase.KeyValue.DurabilityLevel | durability | The durability level to use. |
Returns
| Type | Description |
|---|---|
| SingleQueryTransactionConfigBuilder | The builder. |
ExpirationTime(TimeSpan)
Set the expiration time of this transaction.
Declaration
public SingleQueryTransactionConfigBuilder ExpirationTime(TimeSpan expirationTime)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | expirationTime | The expiration time, relative to now. |
Returns
| Type | Description |
|---|---|
| SingleQueryTransactionConfigBuilder | The builder. |
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. |
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. |