public void stop() { if (watch != null) { synchronized (lock) { if (watch != null) { LOGGER.debug("Stopping leader record watcher"); watch.close(); watch = null; } } } }
public void stop() { if (watch != null) { synchronized (lock) { if (watch != null) { LOGGER.debug("Stopping pod readiness watcher for '{}'", podName); watch.close(); watch = null; } } } }
@PreDestroy public void unwatch() { if (this.watches != null) { for (Map.Entry<String, Watch> entry : this.watches.entrySet()) { try { log.debug("Closing the watch " + entry.getKey()); entry.getValue().close(); } catch (Exception e) { log.error("Error while closing the watch connection", e); } } } }
@Override public void close() throws IOException { started.set(false); if (watch != null) { watch.close(); } executorService.shutdown(); }
@PreDestroy public void unwatch() { if (this.watches != null) { for (Map.Entry<String, Watch> entry : this.watches.entrySet()) { try { log.debug("Closing the watch {}", entry.getKey()); entry.getValue().close(); } catch (Exception e) { log.error("Error while closing the watch connection", e); } } } }
public void stop() { if (buildConfigWatch != null) { buildConfigWatch.close(); buildConfigWatch = null; } }
public void shutdown() { if (watch != null) { watch.close(); } }
@Override public void close() { if (watch != null) { watch.close(); } }
public void close() { if (watch != null) { watch.close(); } }
public void stop() { if (buildsWatch != null) { buildsWatch.close(); buildsWatch = null; } }
public void stop() { if (buildsWatch != null) { buildsWatch.close(); buildsWatch = null; } }
public void stop() { if (watch != null) { watch.close(); } }
@Deactivate void deactivate() { if (watch != null) { watch.close(); } }
@Override public void close() throws IOException { if (watch != null) { watch.close(); } closer.close(); }
@Override public void close() throws IOException { started.set(false); if (watch != null) { watch.close(); } executorService.shutdown(); }
@Override public void close() throws IOException { started.set(false); if (watch != null) { watch.close(); } executorService.shutdown(); }
@Override public void close() throws IOException { try { watch.close(); } catch (Exception e) {} try { forwarderThread.interrupt(); forwarderThread.join(15000); } catch (Exception e) {} } };
@PreDestroy public void unwatch() { if (this.watches != null) { for (Map.Entry<String, Watch> entry : this.watches.entrySet()) { try { log.debug("Closing the watch {}", entry.getKey()); entry.getValue().close(); } catch (Exception e) { log.error("Error while closing the watch connection", e); } } } }
@PreDestroy public void unwatch() { if (this.watches != null) { for (Map.Entry<String, Watch> entry : this.watches.entrySet()) { try { log.debug("Closing the watch " + entry.getKey()); entry.getValue().close(); } catch (Exception e) { log.error("Error while closing the watch connection", e); } } } }
@Override public void close() throws Exception { watch.close(); executorService.shutdown(); synchronized (logWatches) { for (LogWatch watch : logWatches.values()) { watch.close(); } } } }