RefreshableConcurrencyLease
class RefreshableConcurrencyLease implements RefreshableLease
Methods
bool
release()
Release the held slot if still owned by this lease.
string
owner()
Get the owner identifier of this lease.
bool
refresh(int|null $seconds = null)
Refresh the lease's TTL if still owned by this lease.
float|null
getRemainingLifetime()
Get the number of seconds until the lease expires.
Details
at line 16
__construct(RefreshableLock $lock)
Create a new lease instance.
at line 24
bool
release()
Release the held slot if still owned by this lease.
at line 32
string
owner()
Get the owner identifier of this lease.
at line 42
bool
refresh(int|null $seconds = null)
Refresh the lease's TTL if still owned by this lease.
at line 50
float|null
getRemainingLifetime()
Get the number of seconds until the lease expires.