MongoPool::setSizeSet the size for future connection pools 説明
   public static bool MongoPool::setSize
    ( int  
  $size
   )Sets the max number of connections new pools will be able to create. パラメータ
 
 返り値Returns the former value of pool size. 変更履歴
 
 例
 例1 Mongo::setPoolSize example If you set the pool size to n and then create n connections, attempting to create an n+1st connection will throw a MongoConnectionException. 
<?php上の例の出力は、 たとえば以下のようになります。 
Fatal error: Uncaught exception 'MongoConnectionException' with message 'no more connections in pool' in /path/to/php/script.php:10
Stack trace:
#0 /path/to/php/script.php(10): Mongo->__construct()
#1 {main}
  thrown in /path/to/php/script.php on line 10
 |