Code example for Condition

Methods: signalAll

0
		} 
		if (ack.getSequenceId() == this.ackWaitingMessage.getSequenceId()) {
			this.ackWaitingMessage = null;
			try { 
				ackLock.lock();
				ackReceivedCondition.signalAll();
			} finally { 
				ackLock.unlock();
			} 
		} 
		 
	} 
 
	public void sendMessage(Message message, long timeout) throws InterruptedException {
		this.sendMessage(message);
		this.waitForAcknowledgement(message, timeout);
	} 
	 
	public void sendMessage(Message message) {
        OutputStream outStream;
		try {