Class RemoteLockStore

Lock Store API

Implements

Constructors

Properties

heartbeatInterval: null | number = null
locksHeld: number = 0

Methods

  • Release a lock.

    Parameters

    • resourceId: string

      Id of lock.

    • executionId: string

      Execution id of lock.

    Returns Promise<boolean>

  • Try to acquire a lock.

    Parameters

    • resourceId: string

      Id of lock.

    • executionId: string

      Execution id of lock.

    • expiry: number = ...

      Time in ms before lock will expire.

    Returns Promise<boolean>

    A boolean indicating whether or not the lock was acquired.