|
MediaWiki master
|
Inherits MediaWiki\PoolCounter\PoolCounter.

Public Member Functions | |
| acquireForAnyone ( $timeout=null) | |
| acquireForMe ( $timeout=null) | |
| getConn () | |
| release () | |
| sendCommand (... $args) | |
| setManager (PoolCounterConnectionManager $manager) | |
Public Member Functions inherited from MediaWiki\PoolCounter\PoolCounter | |
| __construct (array $conf, string $type, string $key) | |
| getKey () | |
| getLogger () | |
| getType () | |
| isFastStaleEnabled () | |
| Is fast stale mode (T250248) enabled? This may be overridden by the PoolCounterWork subclass. | |
| setLogger (LoggerInterface $logger) | |
| setTracer (TracerInterface $tracer) | |
Additional Inherited Members | |
Public Attributes inherited from MediaWiki\PoolCounter\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 |
Protected Member Functions inherited from MediaWiki\PoolCounter\PoolCounter | |
| 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. | |
Protected Attributes inherited from MediaWiki\PoolCounter\PoolCounter | |
| SpanInterface | $heldLockSpan = null |
| string | $key |
| All workers with the same key share the lock. | |
| LoggerInterface | $logger |
| 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. | |
| TracerInterface | $tracer |
| string | $type |
| int | $workers |
| Maximum number of workers working on tasks with the same key simultaneously. | |
Definition at line 14 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::acquireForAnyone | ( | $timeout = null | ) |
| int | null | $timeout |
Reimplemented from MediaWiki\PoolCounter\PoolCounter.
Definition at line 118 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::acquireForMe | ( | $timeout = null | ) |
| int | null | $timeout |
Reimplemented from MediaWiki\PoolCounter\PoolCounter.
Definition at line 105 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::getConn | ( | ) |
Definition at line 38 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::release | ( | ) |
Reimplemented from MediaWiki\PoolCounter\PoolCounter.
Definition at line 130 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::sendCommand | ( | $args | ) |
| string|int|float | ...$args |
Definition at line 59 of file PoolCounterClient.php.
| MediaWiki\PoolCounter\PoolCounterClient::setManager | ( | PoolCounterConnectionManager | $manager | ) |
Definition at line 31 of file PoolCounterClient.php.