���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/drive.rickard.co/systemMYs/classes/vendor/Elasticsearch/ConnectionPool/Selectors/RoundRobinSelector.php
���ѧ٧ѧ�
<?php namespace Elasticsearch\ConnectionPool\Selectors; use Elasticsearch\Connections\ConnectionInterface; /** * Class RoundRobinSelector * * @category Elasticsearch * @package Elasticsearch\ConnectionPool\Selectors\ConnectionPool * @author Zachary Tong <zach@elastic.co> * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 * @link http://elastic.co */ class RoundRobinSelector implements SelectorInterface { /** * @var int */ private $current = 0; /** * Select the next connection in the sequence * * @param ConnectionInterface[] $connections an array of ConnectionInterface instances to choose from * * @return \Elasticsearch\Connections\ConnectionInterface */ public function select($connections) { $returnConnection = $connections[$this->current % count($connections)]; $this->current += 1; return $returnConnection; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.29 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�