ServiceNodeLifecycle
class ServiceNodeLifecycle(node: ServiceNode, events: ApplicationEventPublisher, standby: Boolean = false, availability: () -> ApplicationAvailability?) : SmartLifecycle
Starts the node once its backends and internal port are up, and stops it once the public server has stopped: a stop reports the application not ready first, when nothing did (a host without a public server), then runs ServiceNode.stop apart from the thread that closes the context, which waits for it at most the phase's timeout.
Constructors
Link copied to clipboard
constructor(node: ServiceNode, events: ApplicationEventPublisher, standby: Boolean = false, availability: () -> ApplicationAvailability?)