@Override public void close() throws Exception { if (this.nodeCache != null) { this.nodeCache.getListenable().removeListener(listener); this.nodeCache.close(); } if (this.zkClient != null) { this.zkClient.close(); } pool.shutdown(); }
public void stopListener() { try { if (start.compareAndSet(true, false)) { nodeCache.getListenable().removeListener(nodeCacheListener); nodeCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
public void stopListener() { try { if (start.compareAndSet(true, false)) { nodeCache.getListenable().removeListener(nodeCacheListener); nodeCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
public void stopListener() { try { if (start.compareAndSet(true, false)) { childrenCache.getListenable().removeListener(childrenCacheListener); childrenCache.clear(); childrenCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
public void stopListener() { try { if (start.compareAndSet(true, false)) { childrenCache.getListenable().removeListener(childrenCacheListener); childrenCache.clear(); childrenCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
/** * Removes a given listener from this LeaderLatch * * @param listener the listener to remove */ public void removeListener(LeaderLatchListener listener) { listeners.removeListener(listener); }
@Override public void remove(GroupListener<T> listener) { listeners.removeListener(listener); }
@Override public void removeListener(ServiceCacheListener listener) { listenerContainer.removeListener(listener); } }
@Override public void remove(GroupListener<T> listener) { listeners.removeListener(listener); }
@Override public void remove(GroupListener<T> listener) { listeners.removeListener(listener); }
@Override public void removeUpdateListener(WatchedUpdateListener listener) { listeners.removeListener(listener); if (running) { zooKeeperConfigurationSource.removeUpdateListener(listener); } }
public void removeListener() { pathChildrenCache.getListenable().removeListener(this); }
public void removeListener() { nodeCache.getListenable().removeListener(this); }
@Override public void close() throws Exception { if (this.nodeCache != null) { this.nodeCache.getListenable().removeListener(listener); this.nodeCache.close(); } if (this.zkClient != null) { this.zkClient.close(); } pool.shutdown(); }
private void deactivateInternal() { configCache.getListenable().removeListener(this); Closeables.closeQuietly(configCache); containerCache.getListenable().removeListener(this); Closeables.closeQuietly(containerCache); Closeables.closeQuietly(commandRequestsQueue); Closeables.closeQuietly(commandResponsesQueue); commandsMapper.getTypeFactory().clearCache(); commandsExecutor.shutdownNow(); commandProcessorExecutor.shutdownNow(); callbacksExecutor.shutdownNow(); cacheExecutor.shutdownNow(); }
public void stopListener() { try { if (start.compareAndSet(true, false)) { nodeCache.getListenable().removeListener(nodeCacheListener); nodeCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
@Override public void removeListener(ServiceCacheListener listener) { listenerContainer.removeListener(listener); discovery.getClient().getConnectionStateListenable().removeListener(listener); }
@Override public void removeListener(ServiceCacheListener listener) { listenerContainer.removeListener(listener); discovery.getClient().getConnectionStateListenable().removeListener(listener); }
public void stopListener() { try { if (start.compareAndSet(true, false)) { childrenCache.getListenable().removeListener(childrenCacheListener); childrenCache.clear(); childrenCache.close(); } } catch (IOException e) { throw new ZkException(e); } } }
public void stop() { worker.stop(context); cache.getListenable().removeListener(this); try { cache.close(); } catch (IOException e) { throw FabricException.launderThrowable(e); } }