return null;
}
public Tuple sendSync(Message m) throws IOException {
m.genAck();
SyncCallResult scr = new SyncCallResult();
messagingClientHandler.addOutstandingAck(m.getAck(), scr);
synchronized(scr) {
sendAsync(m);
while(scr.getException() == null && scr.getTuple() == null) {
try {
scr.wait();
} catch(InterruptedException e) {
throw new InterruptedIOException();
}
}
}
if (scr.getException() != null) {
throw new IOException("Problem sending message", scr.getException());
}
return scr.getTuple();
}