public class ServerListenerAdapter extends Object implements ServerListener
ServerListener implementation in order for a user to implement only the methods
what he or she really needs.| Constructor and Description |
|---|
ServerListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
serverStarted(Server server)
Invoked when a
Server finished its startup procedure successfully and it started to serve
incoming requests. |
void |
serverStarting(Server server)
Invoked when a
Server begins its startup procedure. |
void |
serverStopped(Server server)
Invoked when a
Server finished its shutdown procedure and it stopped to serve incoming requests. |
void |
serverStopping(Server server)
Invoked when a
Server begins its shutdown procedure. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic void serverStarting(Server server) throws Exception
ServerListenerServer begins its startup procedure. Note that the Server will abort
its startup when a ServerListener.serverStarting(Server) throws an exception.serverStarting in interface ServerListenerExceptionpublic void serverStarted(Server server) throws Exception
ServerListenerServer finished its startup procedure successfully and it started to serve
incoming requests.serverStarted in interface ServerListenerExceptionpublic void serverStopping(Server server) throws Exception
ServerListenerServer begins its shutdown procedure.serverStopping in interface ServerListenerExceptionpublic void serverStopped(Server server) throws Exception
ServerListenerServer finished its shutdown procedure and it stopped to serve incoming requests.serverStopped in interface ServerListenerExceptionCopyright © 2020 LeanCloud. All rights reserved.