Pool::__construct PHP 메소드

__construct() 공개 메소드

Construct a new Pool of Workers
public __construct ( integer $size, string | null $class, array | null $ctor = [] )
$size integer The maximum number of Workers this Pool can create
$class string | null The class for new Workers
$ctor array | null An array of arguments to be passed to new Workers
    public function __construct($size, $class, $ctor = [])
    {
    }

Usage Example

예제 #1
0
 /**
  * @param array                $nodeUrls
  * @param CacheInterface|null  $cache
  * @param LoggerInterface|null $log
  *
  * @throws ConnectException
  */
 public function __construct(array $nodeUrls = array(), CacheInterface $cache = null, LoggerInterface $log = null)
 {
     if (!$cache) {
         $cache = new MemoryCache();
     }
     $this->cache = $cache;
     parent::__construct($nodeUrls, $log);
 }
All Usage Examples Of Pool::__construct