/**
* Set the configured work queue. If the service is already started, the change will take effect upon next restart.
* @param workQueue the work queue
*/
public synchronized void setWorkQueue(final BlockingQueue<Runnable> workQueue){
if (workQueue == null) {
setWorkQueue(new ArrayBlockingQueue<Runnable>(DEFAULT_QUEUE_LENGTH));
}
this.workQueue=workQueue;
}

Example 33

From project jkernelmachines, under directory /src/fr/lip6/evaluation/.