You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcServerAutoConfiguration.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -135,8 +135,8 @@ public List<GrpcServerConfigurer> defaultServerConfigurers() {
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcServerFactoryAutoConfiguration.java
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -82,12 +82,16 @@ public ShadedNettyGrpcServerFactory shadedNettyGrpcServerFactory(
82
82
* The server lifecycle bean for a shaded netty based server.
83
83
*
84
84
* @param factory The factory used to create the lifecycle.
85
+
* @param properties The server properties to use.
85
86
* @return The inter-process server lifecycle bean.
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/config/GrpcServerProperties.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,17 @@ public class GrpcServerProperties {
93
93
*/
94
94
privateStringinProcessName;
95
95
96
+
/**
97
+
* The time to wait for the server to gracefully shutdown (completing all requests after the server started to
98
+
* shutdown). If set to {@code -1} the server waits forever. If set to {@code 0} the server will force shutdown
99
+
* immediately. Defaults to {@code 30s}.
100
+
*
101
+
* @param gracefullShutdownTimeout The time to wait for a graceful shutdown.
102
+
* @return The time to wait for a graceful shutdown.
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/serverfactory/GrpcServerLifecycle.java
0 commit comments