Class StoreLockOptions
- Namespace
- Foundation.Data.Doublets.Cli
- Assembly
- Foundation.Data.Doublets.Cli.dll
The parsed --lock, --no-lock and --lock-timeout options.
public sealed record StoreLockOptions : IEquatable<StoreLockOptions>
- Inheritance
-
StoreLockOptions
- Implements
- Inherited Members
Fields
DefaultTimeoutMs
How long a waiter waits by default, in milliseconds.
public const ulong DefaultTimeoutMs = 30000
Field Value
Properties
Kind
public StoreLockKind Kind { get; init; }
Property Value
TimeoutMs
How long to wait for a held lock, in milliseconds; zero tries once.
public ulong TimeoutMs { get; init; }
Property Value
Trace
Report waiting, breaking and acquiring on standard error.
public bool Trace { get; init; }
Property Value
Methods
Parse(string?, string?)
Reads the raw values of --lock and --lock-timeout.
public static StoreLockOptions Parse(string? kind, string? timeout)
Parameters
Returns
Exceptions
- FormatException
A value is not one of the accepted ones.