Code example for Condition

Methods: signalAll

0
			if(author.equals(""))
				author = "Unknown";
			Lastmessages.put(counter, author + ": " + message);
 
			// Release all handler waiting a message 
			newMessageReceived.signalAll();
			lock.unlock();
			return true; 
		}else{ 
			AppLog.logWarningString("Null message"); 
			lock.unlock();
			return false; 
		} 
 
 
	} 
 
	private String getUpdate(int lastMessageNumberReceived){
 
		String messageToSend = new String();
		int currentCounter = counter;