class Locker

Properties

static protected Channel> $channels

Methods

static bool
lock(string $key)

Acquire a lock for the given key.

static void
unlock(string $key)

Release the lock for the given key.

static void
flushState()

Flush all static state.

Details

at line 22
static bool lock(string $key)

Acquire a lock for the given key.

Returns true if this is the first lock acquisition (owner), or false if waiting on an existing lock.

Parameters

string $key

Return Value

bool

at line 37
static void unlock(string $key)

Release the lock for the given key.

Parameters

string $key

Return Value

void

at line 49
static void flushState()

Flush all static state.

Return Value

void