Class QueueOptions
Behavior options for the IPersistentQueue<T> implementation.
Implements
Inherited Members
Namespace: Couchbase.DataStructures
Assembly: Couchbase.NetClient.dll
Syntax
public sealed record QueueOptions : IEquatable<QueueOptions>
Constructors
| Edit this page View SourceQueueOptions(int, TimeSpan?)
Behavior options for the IPersistentQueue<T> implementation.
Declaration
public QueueOptions(int CasMismatchRetries = 10, TimeSpan? Timeout = null)
Parameters
Type | Name | Description |
---|---|---|
int | CasMismatchRetries | For operations that use Cas, such as Dequeue() the number of times a CasMismatchException will be retried internally. |
TimeSpan? | Timeout | The timeout value for operations that involve retries. Defaults to KvTimeout. |
Fields
| Edit this page View SourceDefaultCasMismatchRetries
Declaration
public const int DefaultCasMismatchRetries = 10
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceCasMismatchRetries
For operations that use Cas, such as Dequeue() the number of times a CasMismatchException will be retried internally.
Declaration
public int CasMismatchRetries { get; init; }
Property Value
Type | Description |
---|---|
int |
Timeout
The timeout value for operations that involve retries. Defaults to KvTimeout.
Declaration
public TimeSpan? Timeout { get; init; }
Property Value
Type | Description |
---|---|
TimeSpan? |