Class PerTransactionConfigBuilder
A builder class for generating Per
Inherited Members
Namespace: Couchbase.Client.Transactions.Config
Assembly: Couchbase.NetClient.dll
Syntax
public class PerTransactionConfigBuilder
Methods
| Edit this page View SourceBuild()
Build a Per
Declaration
public PerTransactionConfig Build()
Returns
Type | Description |
---|---|
Per |
A completed config. |
Create()
Create an instance of the Per
Declaration
public static PerTransactionConfigBuilder Create()
Returns
Type | Description |
---|---|
Per |
DurabilityLevel(DurabilityLevel)
Set the minimum desired Durability
Declaration
public PerTransactionConfigBuilder DurabilityLevel(DurabilityLevel durabilityLevel)
Parameters
Type | Name | Description |
---|---|---|
Durability |
durabilityLevel | The Durability |
Returns
Type | Description |
---|---|
Per |
The continued instance of this builder. |
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 |
---|---|---|
Time |
keyValueTimeout | The timeout on Couchbase Key/Value operations for this transaction |
Returns
Type | Description |
---|---|
Per |
The continued instance of this builder. |
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 |
---|---|
Per |
The continued instance of this builder |
QueryConfig(PerTransactionQueryConfig)
Sets the per-transaction specific query options.
Declaration
public PerTransactionConfigBuilder QueryConfig(PerTransactionQueryConfig perTransactionQueryConfig)
Parameters
Type | Name | Description |
---|---|---|
Per |
perTransactionQueryConfig | The per-transaction specific query options. |
Returns
Type | Description |
---|---|
Per |
The continued instance of this builder. |
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 |
---|---|---|
Time |
timeout | The relative expiration time of the transaction for this transaction |
Returns
Type | Description |
---|---|
Per |
The continued instance of this builder. |