Interface RestartInitializer

All Known Implementing Classes:
DefaultRestartInitializer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RestartInitializer
Strategy interface used to initialize a Restarter.
Since:
1.3.0
Author:
Phillip Webb
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RestartInitializer
    RestartInitializer that doesn't return any URLs.
  • Method Summary

    Modifier and Type
    Method
    Description
    URL[]
    Return the initial set of URLs for the Restarter or null if no initial restart is required.
  • Field Details

  • Method Details

    • getInitialUrls

      URL[] getInitialUrls(Thread thread)
      Return the initial set of URLs for the Restarter or null if no initial restart is required.
      Parameters:
      thread - the source thread
      Returns:
      initial URLs or null