1<?php 2/** 3 * Elasticsearch PHP client 4 * 5 * @link https://github.com/elastic/elasticsearch-php/ 6 * @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co) 7 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 8 * @license https://www.gnu.org/licenses/lgpl-2.1.html GNU Lesser General Public License, Version 2.1 9 * 10 * Licensed to Elasticsearch B.V under one or more agreements. 11 * Elasticsearch B.V licenses this file to you under the Apache 2.0 License or 12 * the GNU Lesser General Public License, Version 2.1, at your option. 13 * See the LICENSE file in the project root for more information. 14 */ 15 16 17declare(strict_types = 1); 18 19namespace Elasticsearch\ConnectionPool; 20 21use Elasticsearch\ConnectionPool\Selectors\SelectorInterface; 22use Elasticsearch\Connections\Connection; 23use Elasticsearch\Connections\ConnectionFactoryInterface; 24use Elasticsearch\Connections\ConnectionInterface; 25 26class SimpleConnectionPool extends AbstractConnectionPool implements ConnectionPoolInterface 27{ 28 29 /** 30 * {@inheritdoc} 31 */ 32 public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface $factory, $connectionPoolParams) 33 { 34 parent::__construct($connections, $selector, $factory, $connectionPoolParams); 35 } 36 37 public function nextConnection(bool $force = false): ConnectionInterface 38 { 39 return $this->selector->select($this->connections); 40 } 41 42 public function scheduleCheck(): void 43 { 44 } 45} 46