jpower.core.WorkerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JPower Show documentation
Show all versions of JPower Show documentation
Powerful Library for the JVM
package jpower.core;
public class WorkerFactory implements Factory
{
private final int size;
public WorkerFactory(int size)
{
this.size = size;
}
public WorkerFactory(Worker worker)
{
this(worker.queue.size());
}
@Override
public Worker create()
{
return new Worker(size);
}
}