Package com.linecorp.armeria.server
Interface ServerListener
- All Known Implementing Classes:
ConsulUpdatingListener,EurekaUpdatingListener,ServerListenerAdapter,ZooKeeperUpdatingListener
public interface ServerListener
Listens to life cycle events of a
Server.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerListenerBuilderbuilder()Returns a newServerListenerBuilder.voidserverStarted(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.
-
Method Details
-
builder
Returns a newServerListenerBuilder. -
serverStarting
Invoked when aServerbegins its startup procedure. Note that theServerwill abort its startup when aserverStarting(Server)throws an exception.- Throws:
Exception
-
serverStarted
Invoked when aServerfinished its startup procedure successfully and it started to serve incoming requests.- Throws:
Exception
-
serverStopping
Invoked when aServerbegins its shutdown procedure.- Throws:
Exception
-
serverStopped
Invoked when aServerfinished its shutdown procedure and it stopped to serve incoming requests.- Throws:
Exception
-