/** * Creating a {@link ConcurrentComputation} instance. * * @param processorFactory * the factory for input processors * @param executor * the executor used internally to run the jobs * @param maxWorkers * the maximal number of concurrent workers processing the jobs */ public ConcurrentComputation(F processorFactory, ConcurrentExecutor executor, int maxWorkers) { this.processorFactory = processorFactory; this.termination = false; this.worker = getWorker(); this.executor = executor; this.maxWorkers = maxWorkers; }
/** * Creating a {@link ConcurrentComputation} instance. * * @param processorFactory * the factory for input processors * @param executor * the executor used internally to run the jobs * @param maxWorkers * the maximal number of concurrent workers processing the jobs */ public ConcurrentComputation(F processorFactory, ConcurrentExecutor executor, int maxWorkers) { this.processorFactory = processorFactory; this.termination = false; this.worker = getWorker(); this.executor = executor; this.maxWorkers = maxWorkers; }
/** * Creating a {@link ConcurrentComputation} instance. * * @param processorFactory * the factory for input processors * @param executor * the executor used internally to run the jobs * @param maxWorkers * the maximal number of concurrent workers processing the jobs */ public ConcurrentComputation(F processorFactory, ConcurrentExecutor executor, int maxWorkers) { this.processorFactory = processorFactory; this.termination = false; this.worker = getWorker(); this.executor = executor; this.maxWorkers = maxWorkers; }