class ConcurrencyLease implements Lease

Methods

__construct(Lock $lock)

Create a new lease instance.

bool
release()

Release the held slot if still owned by this lease.

string
owner()

Get the owner identifier of this lease.

Details

at line 15
__construct(Lock $lock)

Create a new lease instance.

Parameters

Lock $lock

at line 23
bool release()

Release the held slot if still owned by this lease.

Return Value

bool

at line 31
string owner()

Get the owner identifier of this lease.

Return Value

string