public synchronized void putMessage(Object obj){
  fifo.addElement(obj);
  numMessage++;
  notifyAll();
}

public synchronized void putMessage ( Object obj ) { fifo . addElement ( obj ) ; numMessage ++ ; notifyAll ( ) ; }
add a message in the buffer
