code: public void flushUpdate()
      {
          for (int i = 0; i < numberOfQueues; i++)
          {
              if (!dbUpdateLists[i].isEmpty())
              {
                  this.submitTaskToQueue(this.createUpdateTask(dbUpdateLists[i], fileUpdateLists[i]), i, processedUpdates);
                  this.dbUpdateLists[i] = new ArrayList(batchSize);
                  this.fileUpdateLists[i] = new ArrayList(batchSize);
                  this.updatesQueued++;
              }
          }
      }
docs: flushes any remaining objects. called automatically from waitUntilFinished().