/** * <p>This is a convenience method for calling {@link CallStack#pop(Routable)} on the {@link CallStack} of this * Routable. It equals calling <code>routable.getCallStack().pop(routable)</code>.</p> * * @return The handler that was popped. * @see CallStack#pop(Routable) */ public ReplyHandler popHandler() { return callStack.pop(this); }
@Override public void handleReply(Reply reply) { if (reply.getContext() instanceof RequestMonitor) { ((RequestMonitor)reply.getContext()).replied(reply); } else { ReplyHandler handler = reply.getCallStack().pop(reply); handler.handleReply(reply); // not there yet } }