Tabnine Logo
ServiceCache.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.apache.curator.x.discovery.ServiceCache

Best Java code snippets using org.apache.curator.x.discovery.ServiceCache.close (Showing top 7 results out of 315)

origin: spring-cloud/spring-cloud-zookeeper

@Override
public void clearDependencyRegistrationHooks() throws IOException {
  for (ServiceCache<?> cache : this.dependencyRegistry.values()) {
    cache.close();
  }
}
origin: dremio/dremio-oss

 @Override
 public void close() throws Exception {
  // might be redundant, as serviceCache clears them upon closure
  clearListeners();
  serviceCache.close();
 }
}
origin: org.apache.curator/curator-x-discovery

/**
 * {@inheritDoc}
 */
@Override
public void close() throws IOException
{
  discovery.providerClosed(this);
  cache.close();
}
origin: com.daedafusion/service-discovery

  @Override
  public void close() throws IOException
  {
    discovery.providerClosed(this);
    cache.close();
  }
}
origin: info.xiancloud/xian-curator-x-discovery

/**
 * {@inheritDoc}
 */
@Override
public void close() throws IOException
{
  discovery.providerClosed(this);
  cache.close();
}
origin: apache/oozie

private void unadvertiseService() throws Exception {
  // Stop the service discovery cache
  sCache.close();
  // Unadvertise on the service discovery
  sDiscovery.unregisterService(getMetadataInstance());
  sDiscovery.close();
}
origin: org.apache.oozie/oozie-core

private void unadvertiseService() throws Exception {
  // Stop the service discovery cache
  sCache.close();
  // Unadvertise on the service discovery
  sDiscovery.unregisterService(getMetadataInstance());
  sDiscovery.close();
}
org.apache.curator.x.discoveryServiceCacheclose

Popular methods of ServiceCache

  • start
    The cache must be started before use
  • addListener
  • getInstances
    Return the current list of instances. NOTE: there is no guarantee of freshness. This is merely the l
  • getInstance
  • getNewestServiceDefinition

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now