Type Alias SharedLockAcquireSettings

SharedLockAcquireSettings: {
    context: IReadableContext;
    key: string;
    limit: number;
    lockId: string;
    ttl: TimeSpan | null;
}

Internal settings for shared lock acquisition operations. This is used internally by the shared lock adapter implementations and should not be directly instantiated in application code.

IMPORT_PATH: "@daiso-tech/core/shared-lock/contracts"

Type declaration

  • context: IReadableContext

    The current execution context where operations are performed.

  • key: string

    The unique identifier for this shared lock instance.

  • limit: number

    Maximum number of concurrent holders for this lock; for reader flows this limits concurrent readers.

  • lockId: string

    The unique identifier for the lock holder (typically a lock or slot ID). Used to track acquisition and prevent unauthorized release.

  • ttl: TimeSpan | null

    Time-to-live duration for the acquired lock. null means the lock does not expire.