public synchronized void enqueueTask(T t) throws InterruptedException {
  while (_data.size() + 1 > MAX_SIZE) {
    LOG.warn("MAX_SIZE of task queue reached.");
    wait();
  }
  _data.addLast(t);
  notify();
}

public synchronized void enqueueTask ( T t ) throws InterruptedException { while ( _data . size ( ) + 1 > MAX_SIZE ) { LOG . warn ( "MAX_SIZE of task queue reached." ) ; wait ( ) ; } _data . addLast ( t ) ; notify ( ) ; }
synchronized insert of a new task to the end of the fifo queue .
