Lines Matching refs:Connection
39 * @var Connection\ConnectionPool
393 public function addConnection(Connection $connection)
413 * @return Connection
421 * @return Connection[]
429 * @return \Elastica\Connection\Strategy\StrategyInterface
437 * @param array|Connection[] $connections
668 $connections[] = Connection::create($this->_prepareConnectionParams($connection));
674 $connections[] = Connection::create($this->_prepareConnectionParams($server));
680 $connections[] = Connection::create($this->_prepareConnectionParams($this->getConfig()));
691 $strategy = Connection\Strategy\StrategyFactory::create($this->getConfig('connectionStrategy'));
693 $this->_connectionPool = new Connection\ConnectionPool($connections, $strategy, $this->_callback);
697 * Creates a Connection params array from a Client or server config array.