code: public synchronized Object getNextJob()
      {
          Object strJobDef = null;
          synchronized (this)
          {
              if (gvJobs.size() > 0)
                  strJobDef = gvJobs.remove(0);
          }
          return strJobDef;
      }
docs: Pull the next job off the queue and remove it.
  @return The next job.