Package com.linecorp.centraldogma.server
Class GracefulShutdownTimeout
java.lang.Object
com.linecorp.centraldogma.server.GracefulShutdownTimeout
Graceful shutdown timeout.
-
Constructor Summary
ConstructorDescriptionGracefulShutdownTimeout
(long quietPeriodMillis, long timeoutMillis) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the quiet period of graceful shutdown process, in milliseconds.long
Returns the timeout of graceful shutdown process, in milliseconds.toString()
-
Constructor Details
-
GracefulShutdownTimeout
public GracefulShutdownTimeout(long quietPeriodMillis, long timeoutMillis) Creates a new instance.- Parameters:
quietPeriodMillis
- the number of milliseconds to wait for active requests to go end before shutting down.0
means the server will stop right away without waiting.timeoutMillis
- the number of milliseconds to wait before shutting down the server regardless of active requests. This should be set to a time greater thanquietPeriodMillis
to ensure the server shuts down even if there is a stuck request.
-
-
Method Details