public void addMessages(List<? extends Message> messages){
  if (SHOW_LOGS)   Logger.v(TAG,">> addMessages, lock " + messages);
  mQueueLock.lock(TAG);
  mPlayerMessagesQueue.addAll(messages);
  mQueueLock.notify(TAG);
  if (SHOW_LOGS)   Logger.v(TAG,"<< addMessages, unlock " + messages);
  mQueueLock.unlock(TAG);
}

public void addMessages ( List < ? extends Message > messages ) { if ( SHOW_LOGS ) Logger . v ( TAG , ">> addMessages, lock " + messages ) ; mQueueLock . lock ( TAG ) ; mPlayerMessagesQueue . addAll ( messages ) ; mQueueLock . notify ( TAG ) ; if ( SHOW_LOGS ) Logger . v ( TAG , "<< addMessages, unlock " + messages ) ; mQueueLock . unlock ( TAG ) ; }
use it if you need to add a multiple messages
