Package org.jboss.as.server.suspend
Interface ServerActivity
-
public interface ServerActivityA server activity that may have to finish before the server can shut down gracefully.- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpreSuspend(ServerActivityCallback listener)Invoked before the server is paused.voidresume()Invoked if the suspend or pre-suspened is cancelledvoidsuspended(ServerActivityCallback listener)Invoked once the suspend process has started.
-
-
-
Method Detail
-
preSuspend
void preSuspend(ServerActivityCallback listener)
Invoked before the server is paused. This is the place where pause notifications should be sent to external systems such as load balancers to tell them this node is about to go away.- Parameters:
listener- The listener to invoker when the pre-pause phase is done
-
suspended
void suspended(ServerActivityCallback listener)
Invoked once the suspend process has started. One this has been invoked no new requests should be allowed to proceeed- Parameters:
listener- The listener to invoke when suspend is done.
-
resume
void resume()
Invoked if the suspend or pre-suspened is cancelled
-
-