PHP 클래스 Mongolid\Connection\Pool

파일 보기 프로젝트 열기: leroy-merlin-br/mongolid 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connections SplQueue Opened connections.

공개 메소드들

메소드 설명
__construct ( ) Constructs a connection pool.
addConnection ( Connection $conn ) : boolean Adds a new connection to the pool.
getConnection ( ) : Connection Gets a connection from the pool. It will cycle through the existent connections.

메소드 상세

__construct() 공개 메소드

Constructs a connection pool.
public __construct ( )

addConnection() 공개 메소드

Adds a new connection to the pool.
public addConnection ( Connection $conn ) : boolean
$conn Connection The actual connection that will be added to the pool.
리턴 boolean Success

getConnection() 공개 메소드

Gets a connection from the pool. It will cycle through the existent connections.
public getConnection ( ) : Connection
리턴 Connection

프로퍼티 상세

$connections 보호되어 있는 프로퍼티

Opened connections.
protected SplQueue $connections
리턴 SplQueue