Class ProjectGenerationStatPublisher

java.lang.Object
io.spring.initializr.actuate.stat.ProjectGenerationStatPublisher

public class ProjectGenerationStatPublisher extends Object
Publish stats for each project generated to an Elastic index.
Author:
Stephane Nicoll, Moritz Halbritter
  • Constructor Details

  • Method Details

    • handleEvent

      @EventListener @Async public void handleEvent(ProjectRequestEvent event)
      Publish the given event to the index. Failures are logged.
      Parameters:
      event - the event
    • updateRequestUrl

      protected void updateRequestUrl(URI requestUrl)
      Update the URL to which documents are published.
      Parameters:
      requestUrl - the URL