Skip to content

Commit 89a1a9e

Browse files
committed
Merge branch 'master' into pr/496
2 parents 32bd4d2 + 39e39b2 commit 89a1a9e

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
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 {@code 0}.
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: 15 additions & 1 deletion
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",
@@ -94,6 +101,13 @@
94101
"description": "The negotiation type to use on the connection.",
95102
"defaultValue": "TLS"
96103
},
104+
{
105+
"name": "grpc.client.GLOBAL.immediate-connect-timeout",
106+
"type": "java.time.Duration",
107+
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties",
108+
"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.",
109+
"defaultValue": 0
110+
},
97111
{
98112
"name": "grpc.client.GLOBAL.security.authority-override",
99113
"type": "java.lang.String",
@@ -108,7 +122,7 @@
108122
},
109123
{
110124
"name": "grpc.client.GLOBAL.security.ciphers",
111-
"type": "java.lang.String",
125+
"type": "java.util.List<java.lang.String>",
112126
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties$Security",
113127
"description": "The cipher suite accepted for secure connections (in the order of preference). If not specified (null), then the default suites will be used."
114128
},

0 commit comments

Comments
 (0)