Tabnine Logo
RefreshEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
RefreshEvent
in
org.springframework.cloud.endpoint.event

Best Java code snippets using org.springframework.cloud.endpoint.event.RefreshEvent (Showing top 4 results out of 315)

origin: org.springframework.cloud/spring-cloud-context

  public void handle(RefreshEvent event) {
    if (this.ready.get()) { // don't handle events before app is ready
      log.debug("Event received " + event.getEventDesc());
      Set<String> keys = this.refresh.refresh();
      log.info("Refresh keys changed: " + keys);
    }
  }
}
origin: spring-cloud/spring-cloud-zookeeper

@Override
public void childEvent(CuratorFramework client, TreeCacheEvent event) throws Exception {
  TreeCacheEvent.Type eventType = event.getType();
  if (eventType == NODE_ADDED || eventType == NODE_REMOVED || eventType == NODE_UPDATED) {
    this.publisher.publishEvent(new RefreshEvent(this, event, getEventDesc(event)));
  }
}
origin: spring-cloud/spring-cloud-consul

  log.trace("Context "+context + " has new index " + newIndex);
  RefreshEventData data = new RefreshEventData(context, currentIndex, newIndex);
  this.publisher.publishEvent(new RefreshEvent(this, data, data.toString()));
} else if (log.isTraceEnabled()) {
  log.trace("Event for index already published for context "+context);
origin: spring-cloud/spring-cloud-commons

  public void handle(RefreshEvent event) {
    if (this.ready.get()) { // don't handle events before app is ready
      log.debug("Event received " + event.getEventDesc());
      Set<String> keys = this.refresh.refresh();
      log.info("Refresh keys changed: " + keys);
    }
  }
}
org.springframework.cloud.endpoint.eventRefreshEvent

Javadoc

Event that triggers a call to RefreshEndpoint#refresh().

Most used methods

  • <init>
  • getEventDesc

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • CodeWhisperer alternatives
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