1<?php
2
3declare(strict_types = 1);
4
5namespace Elasticsearch\ConnectionPool\Selectors;
6
7use Elasticsearch\Connections\ConnectionInterface;
8
9/**
10 * Class RandomSelector
11 *
12 * @category Elasticsearch
13 * @package  Elasticsearch\Connections\Selectors
14 * @author   Zachary Tong <zach@elastic.co>
15 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache2
16 * @link     http://elastic.co
17 */
18interface SelectorInterface
19{
20    /**
21     * Perform logic to select a single ConnectionInterface instance from the array provided
22     *
23     * @param \Elasticsearch\Connections\ConnectionInterface[] $connections an array of ConnectionInterface instances to choose from
24     */
25    public function select(array $connections): ConnectionInterface;
26}
27