PHP Class MongoPool

Afficher le fichier Open project: alcaeus/mongo-php-adapter Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

info() public static méthode

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

setSize() public static méthode

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