Package org.apache.juneau.microservice
Class BasicMicroserviceListener
java.lang.Object
org.apache.juneau.microservice.BasicMicroserviceListener
- All Implemented Interfaces:
MicroserviceListener
Basic extensible microservice listener with default no-op method implementations.
See Also:
-
Constructor Summary
-
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.
-
Constructor Details
-
BasicMicroserviceListener
public BasicMicroserviceListener()
-
-
Method Details
-
onStart
Description copied from interface:MicroserviceListener
Called at the beginning of theMicroservice.start()
call.- Specified by:
onStart
in interfaceMicroserviceListener
- Parameters:
microservice
- Reference to microservice.
-
onStop
Description copied from interface:MicroserviceListener
Called at the end of theMicroservice.stop()
call.- Specified by:
onStop
in interfaceMicroserviceListener
- Parameters:
microservice
- Reference to microservice.
-
onConfigChange
Description copied from interface:MicroserviceListener
Called if one or more changes occur in the config file.- Specified by:
onConfigChange
in interfaceMicroserviceListener
- Parameters:
microservice
- Reference to microservice.events
- The list of changes in the config file.
-