import { LockResponse } from "../../types/lock/LockResponse"; import { UnlockResponse } from "../../types/lock/UnlockResponse"; export default interface IClientLock { /** * * @param storeName storage to store lock information. * @param resourceId id of a resource that gets locked. * @param lockOwner owner owning the lock. * @param expiryInSeconds the expiry time for the lock. */ lock(storeName: string, resourceId: string, lockOwner: string, expiryInSeconds: number): Promise; /** * * @param storeName storage to store lock information. * @param resourceId id of a resource that gets locked. * @param lockOwner owner owning the lock. */ unlock(storeName: string, resourceId: string, lockOwner: string): Promise; }