@Override public void reset() { super.reset(); pendingResponses.clear(); }
/** * Called from the constructor to ensure control and data handlers * are set and initialized. */ private void initializeHandlers() { if (this.params.getLocalDataHandler() != null) { this.params.getLocalDataHandler().reset(); this.params.getLocalDataHandler().setSession(this); } else if (this.params.getRemoteDataHandler() == null) { this.params.setLocalDataHandler(new VisitorDataQueue()); this.params.getLocalDataHandler().setSession(this); } if (params.getControlHandler() != null) { params.getControlHandler().reset(); } else { params.setControlHandler(new VisitorControlHandler()); } params.getControlHandler().setSession(this); }