public interface ServerListener
Server.| Modifier and Type | Method and Description |
|---|---|
static ServerListenerBuilder |
builder()
Returns a new
ServerListenerBuilder. |
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. |
static ServerListenerBuilder builder()
ServerListenerBuilder.void serverStarting(Server server) throws Exception
Server begins its startup procedure. Note that the Server will abort
its startup when a serverStarting(Server) throws an exception.Exceptionvoid serverStarted(Server server) throws Exception
Server finished its startup procedure successfully and it started to serve
incoming requests.Exceptionvoid serverStopping(Server server) throws Exception
Server begins its shutdown procedure.ExceptionCopyright © 2020 LeanCloud. All rights reserved.