Package com.linecorp.armeria.server
Class ServerListenerAdapter
java.lang.Object
com.linecorp.armeria.server.ServerListenerAdapter
- All Implemented Interfaces:
ServerListener
- Direct Known Subclasses:
ConsulUpdatingListener,EurekaUpdatingListener,ZooKeeperUpdatingListener
A skeletal
ServerListener implementation in order for a user to implement only the methods
what he or she really needs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserverStarted(Server server) Invoked when aServerfinished its startup procedure successfully and it started to serve incoming requests.voidserverStarting(Server server) Invoked when aServerbegins its startup procedure.voidserverStopped(Server server) Invoked when aServerfinished its shutdown procedure and it stopped to serve incoming requests.voidserverStopping(Server server) Invoked when aServerbegins its shutdown procedure.
-
Constructor Details
-
ServerListenerAdapter
public ServerListenerAdapter()
-
-
Method Details
-
serverStarting
Description copied from interface:ServerListenerInvoked when aServerbegins its startup procedure. Note that theServerwill abort its startup when aServerListener.serverStarting(Server)throws an exception.- Specified by:
serverStartingin interfaceServerListener- Throws:
Exception
-
serverStarted
Description copied from interface:ServerListenerInvoked when aServerfinished its startup procedure successfully and it started to serve incoming requests.- Specified by:
serverStartedin interfaceServerListener- Throws:
Exception
-
serverStopping
Description copied from interface:ServerListenerInvoked when aServerbegins its shutdown procedure.- Specified by:
serverStoppingin interfaceServerListener- Throws:
Exception
-
serverStopped
Description copied from interface:ServerListenerInvoked when aServerfinished its shutdown procedure and it stopped to serve incoming requests.- Specified by:
serverStoppedin interfaceServerListener- Throws:
Exception
-