PHP Class MongoPool

Exibir arquivo Open project: alcaeus/mongo-php-adapter Class Usage Examples

Public Methods

Method Description
getSize ( ) : integer Get pool size for connection pools
info ( ) : array Returns an array of information about all connection pools.
setSize ( integer $size ) : boolean Sets the max number of connections new pools will be able to create.

Method Details

getSize() public static method

Get pool size for connection pools
public static getSize ( ) : integer
return integer Returns the current pool size

info() public static method

Returns an array of information about all connection pools.
public static info ( ) : array
return array

setSize() public static method

Sets the max number of connections new pools will be able to create.
public static setSize ( integer $size ) : boolean
$size integer
return boolean Returns the former value of pool size