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-boot-autoconfigure/grpc-server-boot-autoconfigure/src/main/java/grpcstarter/server/feature/exceptionhandling/ExceptionHandlingServerInterceptor.java
Copy file name to clipboardExpand all lines: grpc-boot-autoconfigure/grpc-server-boot-autoconfigure/src/main/java/grpcstarter/server/feature/exceptionhandling/GrpcExceptionHandlerListener.java
Copy file name to clipboardExpand all lines: grpc-boot-autoconfigure/grpc-server-boot-autoconfigure/src/main/java/grpcstarter/server/feature/exceptionhandling/annotation/GrpcExceptionHandlerMethod.java
| enabled| java.lang.Boolean|Whether to enable datasource health check, default true.| true||
157
-
| service| java.lang.String|The service name that will be used for datasource health check, default value is 'datasource'.| datasource||
158
-
| timeout| java.lang.Integer|\{@link #validationQuery} timeout, unit seconds.|||
159
-
| validation-query| java.lang.String|The SQL query that will be used to validate datasource connection, default value is 'SELECT 1'.| SELECT 1||
| enable-empty-server| java.lang.Boolean|Whether to start a gRPC server when no service found, default true.| true||
173
-
| enabled| java.lang.Boolean|Whether to enable gRPC server autoconfiguration, default true.| true||
174
-
| max-inbound-message-size| org.springframework.util.unit.DataSize|The maximum message size allowed to be received on the server, default 4MB. @see GrpcUtil#DEFAULT_MAX_MESSAGE_SIZE|||
175
-
| max-inbound-metadata-size| org.springframework.util.unit.DataSize|The maximum size of metadata allowed to be received, default 8KB. @see GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE|||
176
-
| port| java.lang.Integer|gRPC server port, default 9090, 0 or negative numbers will use random port.| 9090||
177
-
| shutdown-timeout| java.lang.Long|Graceful shutdown timeout, default 30s, if 0 will wait forever util all active calls finished.| 30000||
| default-exception-advice-enabled| java.lang.Boolean|Whether to enable \{@link DefaultGrpcExceptionAdvice}, default true. <p>\{@link DefaultGrpcExceptionAdvice} will handle exceptions recognized by gRPC, including: </p><ul><li>\{@link StatusRuntimeException}</li><li>\{@link StatusException}</li></ul><p> When enabled, you can directly throw \{@link StatusRuntimeException} or \{@link StatusException} in service implementation, and the exception will be handled by \{@link DefaultGrpcExceptionAdvice}. </p><pre>\{@code@GrpcService public class SimpleService extends SimpleServiceGrpc.SimpleServiceImplBase \{@Override public void unaryRpc(SimpleRequest request, StreamObserver<SimpleResponse> responseObserver) \{ throw new StatusRuntimeException(Status.INVALID_ARGUMENT.withDescription("Invalid request")); } } }</pre>@see DefaultGrpcExceptionAdvice @since 3.2.3| true||
191
-
| enabled| java.lang.Boolean|Whether to enable exception handling, default true.| true||
| max-description-length| java.lang.Integer|The maximum length of response description. <p> When the length of the description exceeds this value, it will be truncated. </p>@since 3.2.3| 2048||
0 commit comments