1<?php
2
3declare(strict_types = 1);
4
5namespace Elasticsearch\ConnectionPool;
6
7use Elasticsearch\ConnectionPool\Selectors\SelectorInterface;
8use Elasticsearch\Connections\Connection;
9use Elasticsearch\Connections\ConnectionFactoryInterface;
10use Elasticsearch\Connections\ConnectionInterface;
11
12class SimpleConnectionPool extends AbstractConnectionPool implements ConnectionPoolInterface
13{
14
15    /**
16     * {@inheritdoc}
17     */
18    public function __construct($connections, SelectorInterface $selector, ConnectionFactoryInterface $factory, $connectionPoolParams)
19    {
20        parent::__construct($connections, $selector, $factory, $connectionPoolParams);
21    }
22
23    public function nextConnection(bool $force = false): ConnectionInterface
24    {
25        return $this->selector->select($this->connections);
26    }
27
28    public function scheduleCheck(): void
29    {
30    }
31}
32