package freenet.node;

public class WaitingMultiMessageCallback extends MultiMessageCallback {

	
	
	@Override
	synchronized void finish(boolean success) {
		notifyAll();
	}

	public synchronized void waitFor() {
		while(!finished()) {
			try {
				wait();
			} catch (InterruptedException e) {
				// Ignore
			}
		}
	}

	@Override
	void sent(boolean success) {
		// Ignore
	}

}
