1<?php 2 3declare(strict_types = 1); 4 5namespace Elasticsearch\ConnectionPool; 6 7use Elasticsearch\Connections\ConnectionInterface; 8 9/** 10 * ConnectionPoolInterface 11 * 12 * @category Elasticsearch 13 * @package Elasticsearch\ConnectionPool 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 ConnectionPoolInterface 19{ 20 public function nextConnection(bool $force = false): ConnectionInterface; 21 22 public function scheduleCheck(): void; 23} 24