112113114115116117118119120121122
break; } } // if the queued object was not found, then throw an ObjectNotFoundException if (found == false) { throw new ObjectNotFoundException( "the object associated with id[" + id + "] was not found."); } } // return return rval;
156157158159160161162163164165166
// get the next printjob synchronized (queue) { if(queue.size() > 0) { rval = (QueuedObject)queue.get(queue.size()-1); } else { throw new ObjectNotFoundException(METHOD + "The queue was empty."); } } // return return rval; }