private void shutdown() { if (state.getAndSet(EventProcessor.State.CLOSED) != EventProcessor.State.CLOSED) { // shut down only if has not been shut down before LOGGER.debugLog("Shutting down event processing."); executor.close(); } }
private void shutdown() { if (state.getAndSet(EventProcessor.State.CLOSED) != EventProcessor.State.CLOSED) { // shut down only if has not been shut down before LOGGER.debugLog("Shutting down event processing."); executor.close(); } }