Inherits PoolCounter.
|
const | DONE = 3 |
|
const | ERROR = -1 |
|
const | LOCK_HELD = -5 |
|
const | LOCKED = 1 |
|
const | NOT_LOCKED = -2 |
|
const | QUEUE_FULL = -3 |
|
const | RELEASED = 2 |
|
const | TIMEOUT = -4 |
|
| hashKeyIntoSlots ( $type, $key, $slots) |
| Given a key (any string) and the number of lots, returns a slot key (a prefix with a suffix integer from the [0..($slots-1)] range).
|
|
| onAcquire () |
| Update any lock tracking information when the lock is acquired.
|
|
| onRelease () |
| Update any lock tracking information when the lock is released.
|
|
| precheckAcquire () |
| Checks that the lock request is sensible.
|
|
string | $key |
| All workers with the same key share the lock.
|
|
int | $maxqueue |
| If this number of workers are already working/waiting, fail instead of wait.
|
|
int | $slots = 0 |
| Maximum number of workers working on this task type, regardless of key.
|
|
int | $timeout |
| Maximum time in seconds to wait for the lock.
|
|
int | $workers |
| Maximum number of workers working on tasks with the same key simultaneously.
|
|
- Since
- 1.16
Definition at line 29 of file PoolCounterClient.php.
◆ acquireForAnyone()
MediaWiki\PoolCounter\PoolCounterClient::acquireForAnyone |
( |
| $timeout = null | ) |
|
◆ acquireForMe()
MediaWiki\PoolCounter\PoolCounterClient::acquireForMe |
( |
| $timeout = null | ) |
|
◆ getConn()
MediaWiki\PoolCounter\PoolCounterClient::getConn |
( |
| ) |
|
◆ release()
MediaWiki\PoolCounter\PoolCounterClient::release |
( |
| ) |
|
◆ sendCommand()
MediaWiki\PoolCounter\PoolCounterClient::sendCommand |
( |
| $args | ) |
|
◆ setManager()
The documentation for this class was generated from the following file: