Instance of ResourceLocker to use for acquiring a lock.
Time in ms after which the lock expires.
Lock the given resource with a lock providing expiration functionality.
Identifier of the resource that needs to be locked.
A promise containing the expiring lock on the resource.
Allows the locking of resources which is needed for non-atomic ResourceStores. Differs from ResourceLocker by adding expiration logic.