Package org.apache.juneau.microservice
Interface MicroserviceListener
- All Known Implementing Classes:
BasicMicroserviceListener
public interface MicroserviceListener
Listener class for microservice lifecycle events.
See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onConfigChange
(Microservice microservice, ConfigEvents events) Called if one or more changes occur in the config file.void
onStart
(Microservice microservice) Called at the beginning of theMicroservice.start()
call.void
onStop
(Microservice microservice) Called at the end of theMicroservice.stop()
call.
-
Method Details
-
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.
-
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.
-