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 aRestarter
.- Since:
- 1.3.0
- See Also:
DefaultRestartInitializer
Field Summary
Fields Modifier and Type Field Description static RestartInitializer
NONE
RestartInitializer
that doesn't return any URLs.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URL[]
getInitialUrls(Thread thread)
Return the initial set of URLs for theRestarter
ornull
if no initial restart is required.
Field Detail
NONE
static final RestartInitializer NONE
RestartInitializer
that doesn't return any URLs.
Method Detail
getInitialUrls
URL[] getInitialUrls(Thread thread)
Return the initial set of URLs for theRestarter
ornull
if no initial restart is required.- Parameters:
thread
- the source thread- Returns:
- initial URLs or
null