Interface ServerQuiesceListener
-
public interface ServerQuiesceListenerA server quiesce listener. AllServerQuiesceListeners registered in the service registry are called when the server has been stopped without the--forceoption.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserverStopping()Called when the server is stopped without the--forceoption to allow the registered service to perform pre-stop quiesce activities to facilitate a clean server stop, like canceling pending scheduled executors, or stopping inbound traffic to the server.
-
-
-
Method Detail
-
serverStopping
void serverStopping()
Called when the server is stopped without the--forceoption to allow the registered service to perform pre-stop quiesce activities to facilitate a clean server stop, like canceling pending scheduled executors, or stopping inbound traffic to the server. This method should not be used to register any new services, nor should it prematurely remove services that other services depend on.This method must complete and return to its caller in a timely manner and can be called concurrently with other
ServerQuiesceListeners in no specific order.Note that when this method is called,
FrameworkState.isStopping()will return true, andFrameworkState.isValid()will return false.
-
-