Package org.apache.roller.weblogger.business.runnable

Examples of org.apache.roller.weblogger.business.runnable.ContinuousWorkerThread


            // 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();
            }
        }
    }
View Full Code Here


        // create the hits queue
        this.queue = Collections.synchronizedList(new ArrayList());
       
        // start up a worker to process the hits at intervals
        HitCountProcessingJob job = new HitCountProcessingJob();
        worker = new ContinuousWorkerThread("HitCountQueueProcessor", job, this.sleepTime);
        worker.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.business.runnable.ContinuousWorkerThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.