Skip to content

Commit 54d5a71

Browse files
committed
Fix client property metadata
1 parent 48db4d9 commit 54d5a71

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/config/GrpcChannelProperties.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,10 @@ public Duration getImmediateConnectTimeout() {
403403
}
404404

405405
/**
406-
* If set to a positive duration instructs a client to connect to GRPC-endpoint when GRPC stub is created. If it's
407-
* set to a positive timeout application startup will be slower due to connection process will be executed
408-
* synchronously with maximum to connection timeout. If connection fails stub will fail to create with an exception
409-
* which in turn causes context startup to If connection fails stub will fail to create with an exception which in
410-
* turn causes context fail. Defaults to false.
406+
* If set to a positive duration instructs the client to connect to the gRPC endpoint when the GRPC stub is created.
407+
* As a result the application startup will be slightly slower due to connection process being executed
408+
* synchronously up to the maximum to connection timeout. If the connection fails, the stub will fail to create with
409+
* an exception which in turn causes the application context startup to fail. Defaults to false.
411410
*
412411
* @param immediateConnectTimeout Connection timeout at application startup.
413412
*/

grpc-client-spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
"description": "Whether keepAlive will be performed when there are no outstanding RPC on a connection.",
8282
"defaultValue": false
8383
},
84+
{
85+
"name": "grpc.client.GLOBAL.shutdown-grace-period",
86+
"type": "java.time.Duration",
87+
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties",
88+
"description": "The time to wait for the channel to gracefully shutdown (completing all requests).\nIf set to a negative value, the channel waits forever.\nIf set to 0 the channel will force shutdown immediately.\nDefaults to 30s.",
89+
"defaultValue": "30s"
90+
},
8491
{
8592
"name": "grpc.client.GLOBAL.max-inbound-message-size",
8693
"type": "org.springframework.util.unit.DataSize",
@@ -95,7 +102,7 @@
95102
"defaultValue": "TLS"
96103
},
97104
{
98-
"name": "grpc.client.GLOBAL.immediate-connection-timeout",
105+
"name": "grpc.client.GLOBAL.immediate-connect-timeout",
99106
"type": "java.time.Duration",
100107
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties",
101108
"description": "Connection timeout at application startup. If set to a positive duration instructs a client to connect to GRPC-endpoint when GRPC stub is created.",
@@ -115,7 +122,7 @@
115122
},
116123
{
117124
"name": "grpc.client.GLOBAL.security.ciphers",
118-
"type": "java.lang.String",
125+
"type": "java.util.List<java.lang.String>",
119126
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties$Security",
120127
"description": "The cipher suite accepted for secure connections (in the order of preference). If not specified (null), then the default suites will be used."
121128
},

0 commit comments

Comments
 (0)