public class BasicMicroserviceListener extends Object implements MicroserviceListener
Constructor and Description |
---|
BasicMicroserviceListener() |
Modifier and Type | Method and Description |
---|---|
void |
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 the
Microservice.start() call. |
void |
onStop(Microservice microservice)
Called at the end of the
Microservice.stop() call. |
public BasicMicroserviceListener()
public void onStart(Microservice microservice)
MicroserviceListener
Microservice.start()
call.onStart
in interface MicroserviceListener
microservice
- Reference to microservice.public void onStop(Microservice microservice)
MicroserviceListener
Microservice.stop()
call.onStop
in interface MicroserviceListener
microservice
- Reference to microservice.public void onConfigChange(Microservice microservice, ConfigEvents events)
MicroserviceListener
onConfigChange
in interface MicroserviceListener
microservice
- Reference to microservice.events
- The list of changes in the config file.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.