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
* fix: resolve ManagedChannelsImpl channel retrieval issue
- Fix ManagedChannelsImpl to proactively create channels when not found in cache
- Ensure channels are properly initialized and cached on demand
- Resolves issue where getChannel() throws exception for configured channels
Fixes#114
* fix: update ManagedChannels retrieval for User and Order services
Copy file name to clipboardExpand all lines: grpc-boot-autoconfigure/grpc-client-boot-autoconfigure/src/main/java/grpcstarter/client/GrpcClientAutoConfiguration.java
Copy file name to clipboardExpand all lines: grpc-boot-autoconfigure/grpc-client-boot-autoconfigure/src/main/java/grpcstarter/client/GrpcClientUtil.java
| authority| java.lang.String|Default authority. <p> e.g. localhost:8080 </p>|||
98
-
| base-packages| java.util.List<java.lang.String>|Base packages to scan for gRPC stubs. <p> This value will merge with \{@link EnableGrpcClients#basePackages}. <p> The advantage of using configuration is no need to introduce external annotations. </p>|||
99
-
| bean-definition-handler| java.lang.Class<? extends grpcstarter.client.GrpcClientBeanDefinitionHandler>|gRPC client bean definition handler, used to customize the bean definition before registering. <p> Use \{@link GrpcClientBeanDefinitionHandler} if not set. <p> Implementation must have a public no-args constructor. @since 3.4.3.1|||
| clients| java.util.List<java.lang.Class<? extends io.grpc.stub.AbstractStub>>|The clients used to register as Spring beans. <p> This value will merge with \{@link EnableGrpcClients#clients}. <p>`clients` and \{@link #basePackages} represent two different configuration methods. \{@link #basePackages} is through package scanning, and `clients` is through class name. <p> The `clients` configuration can avoid classpath scanning, resulting in faster startup, and it has better IDE support.|||
| max-inbound-message-size| org.springframework.util.unit.DataSize|Default max inbound message size, default value is 4MB. @see DataSize @see GrpcUtil#DEFAULT_MAX_MESSAGE_SIZE|||
106
-
| max-inbound-metadata-size| org.springframework.util.unit.DataSize|Default max metadata size, default value is 8KB. @see DataSize @see GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE|||
| metadata| java.util.List<grpcstarter.client.GrpcClientProperties$Metadata>|Default metadata will be added to all the gRPC requests.|||
109
-
| shutdown-timeout| java.lang.Long|Channel shutdown timeout in milliseconds, default value is 5000.| 5000||
110
-
| ssl-bundle| java.lang.String|SSL bundle name to use for secure connections. <p>References an SSL bundle configured under \{@code spring.ssl.bundle.*}. This is the preferred way to configure SSL/TLS for gRPC clients. @since 3.5.3|||
| enabled| java.lang.Boolean|Whether to enable retry. @see io.grpc.ManagedChannelBuilder#enableRetry() @see io.grpc.ManagedChannelBuilder#disableRetry()|||
130
-
| max-retry-attempts| java.lang.Integer|Maximum number of attempts to retry. @see io.grpc.ManagedChannelBuilder#maxRetryAttempts(int)|||
131
-
| per-rpc-buffer-limit| org.springframework.util.unit.DataSize|The maximum number of retry buffer entries per RPC. @see io.grpc.ManagedChannelBuilder#perRpcBufferLimit(long)|||
132
-
| retry-buffer-size| org.springframework.util.unit.DataSize|The maximum number of retry buffer entries. @see io.grpc.ManagedChannelBuilder#retryBufferSize(long)|||
0 commit comments