*
* @param job the Job to process
*/
public void process(RenderingJob job)
{
Worker worker = this.getWorker();
AccessControlContext context = AccessController.getContext();
job.setWorkerAttribute(ACCESS_CONTROL_CONTEXT_WORKER_ATTR, context);
if (worker==null)
{
queue.push(job);
}
else
{
try
{
synchronized (worker)
{
worker.setJob(job, context);
if (job.getTimeout() > 0) {
workersMonitored.add(worker);
}
worker.notify();
runningJobs++;
}
}
catch (Throwable t)
{