WorkerPool


Description:

public WorkerPool (int parallels, ThreadFactory factory) throws Error

Creates a new worker pool.

Parameters:

parallels

the number of threads

factory

a thread factory to create new threads

Exceptions:

Error

if threads can not be created, due to resource limits, etc.