$_connections
$_connections : array|array<mixed,\Elastica\Connection>
Description of ConnectionPool.
$_connections : array|array<mixed,\Elastica\Connection>
$_strategy : \Elastica\Connection\Strategy\StrategyInterface
__construct(array $connections, \Elastica\Connection\Strategy\StrategyInterface $strategy, callback $callback = null)
array | $connections | |
\Elastica\Connection\Strategy\StrategyInterface | $strategy | |
callback | $callback |
addConnection(\Elastica\Connection $connection) : $this
\Elastica\Connection | $connection |
setConnections(array|array<mixed,\Elastica\Connection> $connections) : $this
array|array<mixed,\Elastica\Connection> | $connections |
getConnection() : \Elastica\Connection
onFail(\Elastica\Connection $connection, \Exception $e, \Elastica\Client $client)
\Elastica\Connection | $connection | |
\Exception | $e | |
\Elastica\Client | $client |
getStrategy() : \Elastica\Connection\Strategy\StrategyInterface