Skip to content

Commit 1484870

Browse files
committed
Renamed shutdownGracePeriod property to to match spring's property
1 parent 21dc16d commit 1484870

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcServerAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public List<GrpcServerConfigurer> defaultServerConfigurers() {
136136
@ConditionalOnBean(GrpcServerFactory.class)
137137
@Bean
138138
public GrpcServerLifecycle grpcServerLifecycle(final GrpcServerFactory factory, GrpcServerProperties properties) {
139-
return new GrpcServerLifecycle(factory, properties.getGracefullShutdownTimeout());
139+
return new GrpcServerLifecycle(factory, properties.getShutdownGracePeriod());
140140
}
141141

142142
}

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/autoconfigure/GrpcServerFactoryAutoConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public GrpcServerLifecycle shadedNettyGrpcServerLifecycle(
9191
final ShadedNettyGrpcServerFactory factory,
9292
final GrpcServerProperties properties) {
9393

94-
return new GrpcServerLifecycle(factory, properties.getGracefullShutdownTimeout());
94+
return new GrpcServerLifecycle(factory, properties.getShutdownGracePeriod());
9595
}
9696

9797
// Then try the normal netty server
@@ -133,7 +133,7 @@ public GrpcServerLifecycle nettyGrpcServerLifecycle(
133133
final NettyGrpcServerFactory factory,
134134
final GrpcServerProperties properties) {
135135

136-
return new GrpcServerLifecycle(factory, properties.getGracefullShutdownTimeout());
136+
return new GrpcServerLifecycle(factory, properties.getShutdownGracePeriod());
137137
}
138138

139139
/**
@@ -170,7 +170,7 @@ public GrpcServerLifecycle inProcessGrpcServerLifecycle(
170170
final InProcessGrpcServerFactory factory,
171171
final GrpcServerProperties properties) {
172172

173-
return new GrpcServerLifecycle(factory, properties.getGracefullShutdownTimeout());
173+
return new GrpcServerLifecycle(factory, properties.getShutdownGracePeriod());
174174
}
175175

176176
}

grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/config/GrpcServerProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class GrpcServerProperties {
102102
* @return The time to wait for a graceful shutdown.
103103
*/
104104
@DurationUnit(ChronoUnit.SECONDS)
105-
private Duration gracefullShutdownTimeout = Duration.of(30, ChronoUnit.SECONDS);
105+
private Duration shutdownGracePeriod = Duration.of(30, ChronoUnit.SECONDS);
106106

107107
/**
108108
* Setting to enable keepAlive. Default to {@code false}.

0 commit comments

Comments
 (0)