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 SummaryModifier 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- 
onStartCalled at the beginning of theMicroservice.start()call.- Parameters:
- microservice- Reference to microservice.
 
- 
onStopCalled at the end of theMicroservice.stop()call.- Parameters:
- microservice- Reference to microservice.
 
- 
onConfigChangeCalled if one or more changes occur in the config file.- Parameters:
- microservice- Reference to microservice.
- events- The list of changes in the config file.
 
 
-