// create the processing queue
this.referrerQueue = Collections.synchronizedList(new ArrayList());
// start up workers
this.workers = new ArrayList();
ContinuousWorkerThread worker = null;
QueuedReferrerProcessingJob job = null;
for(int i=0; i < this.numWorkers; i++) {
job = new QueuedReferrerProcessingJob();
worker = new ContinuousWorkerThread("ReferrerWorker"+i, job, this.sleepTime);
workers.add(worker);
worker.start();
}
}
}