question: 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 ) ; }
target:  Use it if you need to add a multiple messages