@Override public Writable call(RPC.RpcKind rpcKind, String protocol, Writable waitCount, long receiveTime) throws IOException { Call call = Server.getCurCall().get(); int wait = ((IntWritable)waitCount).get(); while (wait-- > 0) { call.postponeResponse(); deferredCall.set(call); } return new IntWritable(count.getAndIncrement()); } };
@Override public String echoPostponed(String value) { Call call = Server.getCurCall().get(); call.postponeResponse(); postponedCalls.add(call); return value; } @Override
RpcEdit(FSEditLog log, FSEditLogOp op, Server.Call call) { super(log, op); this.call = call; call.postponeResponse(); }