Table of Contents

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

ulong

Properties

Kind

public StoreLockKind Kind { get; init; }

Property Value

StoreLockKind

TimeoutMs

How long to wait for a held lock, in milliseconds; zero tries once.

public ulong TimeoutMs { get; init; }

Property Value

ulong

Trace

Report waiting, breaking and acquiring on standard error.

public bool Trace { get; init; }

Property Value

bool

Methods

Parse(string?, string?)

Reads the raw values of --lock and --lock-timeout.

public static StoreLockOptions Parse(string? kind, string? timeout)

Parameters

kind string
timeout string

Returns

StoreLockOptions

Exceptions

FormatException

A value is not one of the accepted ones.