return System.currentTimeMillis() + rpcTimeoutMillis;
}
@Override
public void messageReceived(IoSession session, Object message) {
ResponseMessage resp = (ResponseMessage) message;
WaitingResponseHandler handler = callbacks.remove(resp.getCorrelationId());
// could be null if it already timed out
if (handler != null) {
handler.handler.responseReceived(resp);
}
}