Package org.apache.juneau.microservice
Interface MicroserviceListener
- All Known Subinterfaces:
JettyMicroserviceListener
- All Known Implementing Classes:
BasicJettyMicroserviceListener,BasicMicroserviceListener
public interface MicroserviceListener
Listener class for microservice lifecycle events.
See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConfigChange(Microservice microservice, ConfigEvents events) Called if one or more changes occur in the config file.voidonStart(Microservice microservice) Called at the beginning of theMicroservice.start()call.voidonStop(Microservice microservice) Called at the end of theMicroservice.stop()call.
-
Method Details
-
onConfigChange
Called if one or more changes occur in the config file.- Parameters:
microservice- Reference to microservice.events- The list of changes in the config file.
-
onStart
Called at the beginning of theMicroservice.start()call.- Parameters:
microservice- Reference to microservice.
-
onStop
Called at the end of theMicroservice.stop()call.- Parameters:
microservice- Reference to microservice.
-