BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Elasticsearch\ConnectionPool\AbstractConnectionPool Class Reference
Inheritance diagram for Elasticsearch\ConnectionPool\AbstractConnectionPool:
Collaboration diagram for Elasticsearch\ConnectionPool\AbstractConnectionPool:

Public Member Functions

 __construct ($connections, SelectorInterface $selector, ConnectionFactoryInterface $factory, $connectionPoolParams)
 
 nextConnection ($force=false)
 
 scheduleCheck ()
 

Protected Attributes

 $connections
 
 $seedConnections
 
 $selector
 
 $connectionPoolParams
 
 $connectionFactory
 

Constructor & Destructor Documentation

Elasticsearch\ConnectionPool\AbstractConnectionPool::__construct (   $connections,
SelectorInterface  $selector,
ConnectionFactoryInterface  $factory,
  $connectionPoolParams 
)

Constructor

Parameters
ConnectionInterface[]$connections The Connections to choose from
SelectorInterface$selectorA Selector instance to perform the selection logic for the available connections
ConnectionFactoryInterface$factoryConnectionFactory instance
array$connectionPoolParams

Member Function Documentation

Elasticsearch\ConnectionPool\AbstractConnectionPool::nextConnection (   $force = false)
abstract
Parameters
bool$force
Returns
Connection

Implements Elasticsearch\ConnectionPool\ConnectionPoolInterface.

Elasticsearch\ConnectionPool\AbstractConnectionPool::scheduleCheck ( )
abstract

The documentation for this class was generated from the following file: