/** * Flag that it is time to wrap up all activities and interrupt the listener. */ public void halt() { shutdown = true; LOG.debug("Halting listener"); listener.halt(); // Wait for the listener to terminate. try { listener.join(); } catch (InterruptedException ex) { LOG.warn("Got interrupted before joining the listener", ex); } softHalt(); // clear data structures used for auth if (connectionExecutor != null) { connectionExecutor.shutdown(); } inprogressConnections.clear(); resetConnectionThreadCount(); }
/** * Flag that it is time to wrap up all activities and interrupt the listener. */ public void halt() { shutdown = true; LOG.debug("Halting listener"); listener.halt(); softHalt(); // clear data structures used for auth if (connectionExecutor != null) { connectionExecutor.shutdown(); } inprogressConnections.clear(); resetConnectionThreadCount(); }
/** * Flag that it is time to wrap up all activities and interrupt the listener. */ public void halt() { shutdown = true; LOG.debug("Halting listener"); listener.halt(); softHalt(); }