Package com.linecorp.armeria.server
Class ServerListenerAdapter
java.lang.Object
com.linecorp.armeria.server.ServerListenerAdapter
- All Implemented Interfaces:
ServerListener
- Direct Known Subclasses:
EurekaUpdatingListener
,ZooKeeperUpdatingListener
public class ServerListenerAdapter extends Object implements ServerListener
A skeletal
ServerListener
implementation in order for a user to implement only the methods
what he or she really needs.-
Constructor Summary
Constructors Constructor Description ServerListenerAdapter()
-
Method Summary
Modifier and Type Method Description void
serverStarted(Server server)
Invoked when aServer
finished its startup procedure successfully and it started to serve incoming requests.void
serverStarting(Server server)
Invoked when aServer
begins its startup procedure.void
serverStopped(Server server)
Invoked when aServer
finished its shutdown procedure and it stopped to serve incoming requests.void
serverStopping(Server server)
Invoked when aServer
begins its shutdown procedure.
-
Constructor Details
-
ServerListenerAdapter
public ServerListenerAdapter()
-
-
Method Details
-
serverStarting
Description copied from interface:ServerListener
Invoked when aServer
begins its startup procedure. Note that theServer
will abort its startup when aServerListener.serverStarting(Server)
throws an exception.- Specified by:
serverStarting
in interfaceServerListener
- Throws:
Exception
-
serverStarted
Description copied from interface:ServerListener
Invoked when aServer
finished its startup procedure successfully and it started to serve incoming requests.- Specified by:
serverStarted
in interfaceServerListener
- Throws:
Exception
-
serverStopping
Description copied from interface:ServerListener
Invoked when aServer
begins its shutdown procedure.- Specified by:
serverStopping
in interfaceServerListener
- Throws:
Exception
-
serverStopped
Description copied from interface:ServerListener
Invoked when aServer
finished its shutdown procedure and it stopped to serve incoming requests.- Specified by:
serverStopped
in interfaceServerListener
- Throws:
Exception
-