Class TransactionConfig
The configuration to use for each transaction against a given cluster.
Inherited Members
Namespace: Couchbase.Transactions.Config
Assembly: Couchbase.Transactions.dll
Syntax
public class TransactionConfig
Fields
| Improve this Doc View SourceDefaultCleanupClientAttempts
The default value of CleanupClientAttempts (true).
Declaration
public const bool DefaultCleanupClientAttempts = true
Field Value
Type | Description |
---|---|
Boolean |
DefaultCleanupLostAttempts
The default value of CleanupLostAttempts (true).
Declaration
public const bool DefaultCleanupLostAttempts = true
Field Value
Type | Description |
---|---|
Boolean |
DefaultCleanupWindowMilliseconds
The default cleanup window, in milliseconds.
Declaration
public const int DefaultCleanupWindowMilliseconds = 60000
Field Value
Type | Description |
---|---|
Int32 |
See Also
| Improve this Doc View SourceDefaultDurabilityLevel
The default durability level.
Declaration
public const DurabilityLevel DefaultDurabilityLevel = DurabilityLevel.Majority
Field Value
Type | Description |
---|---|
Couchbase.KeyValue.DurabilityLevel |
See Also
| Improve this Doc View SourceDefaultExpirationMilliseconds
The default expiration, in milliseconds.
Declaration
public const int DefaultExpirationMilliseconds = 15000
Field Value
Type | Description |
---|---|
Int32 |
See Also
| Improve this Doc View SourceDefaultLogOnFailure
The default log level for failures.
Declaration
public const Severity DefaultLogOnFailure = Severity.Error
Field Value
Type | Description |
---|---|
Couchbase.Query.Severity |
Properties
| Improve this Doc View SourceCleanupClientAttempts
Gets a value indicating whether to run the background thread to clean up failed attempts from this transactions instance.
Declaration
public bool CleanupClientAttempts { get; }
Property Value
Type | Description |
---|---|
Boolean |
CleanupLostAttempts
Gets a value indicating whether to run the background thread to clean up lost/abandoned transactions from other clients.
Declaration
public bool CleanupLostAttempts { get; }
Property Value
Type | Description |
---|---|
Boolean |
CleanupWindow
Gets a value indicating the period between runs of the cleanup thread.
Declaration
public TimeSpan CleanupWindow { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
DurabilityLevel
Gets a value for the minimum durability level to use for modification operations.
Declaration
public DurabilityLevel DurabilityLevel { get; }
Property Value
Type | Description |
---|---|
Couchbase.KeyValue.DurabilityLevel |
ExpirationTime
Gets a value indicating the time before a transaction expires and no more attempts will be made.
Declaration
public TimeSpan ExpirationTime { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
KeyValueTimeout
Gets a value indicating the timeout on Couchbase Key/Value operations.
Declaration
public TimeSpan? KeyValueTimeout { get; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
LoggerFactory
Gets a ILoggerFactory that transactions will use for internal logging.
Declaration
public ILoggerFactory LoggerFactory { get; }
Property Value
Type | Description |
---|---|
ILoggerFactory |
MetadataCollection
Gets the Couchbase.KeyValue.ICouchbaseCollection to use for Active Transaction Record metadata.
Declaration
public ICouchbaseCollection MetadataCollection { get; }
Property Value
Type | Description |
---|---|
Couchbase.KeyValue.ICouchbaseCollection |