public final class GrpcExceptionMapperServiceFilter
extends Object
implements StreamingHttpServiceFilterFactory
Throwable subtypes into an gRPC response with an appropriate GrpcStatusCode.
This filter is recommended to be placed as early as possible to make sure it captures all exceptions that may be generated by other filters.
| Modifier and Type | Field and Description |
|---|---|
static StreamingHttpServiceFilterFactory |
INSTANCE
Instance of
GrpcExceptionMapperServiceFilter. |
| Modifier and Type | Method and Description |
|---|---|
StreamingHttpServiceFilter |
create(StreamingHttpService service) |
HttpExecutionStrategy |
requiredOffloads() |
public static final StreamingHttpServiceFilterFactory INSTANCE
GrpcExceptionMapperServiceFilter.public StreamingHttpServiceFilter create(StreamingHttpService service)
create in interface StreamingHttpServiceFilterFactorypublic HttpExecutionStrategy requiredOffloads()
requiredOffloads in interface HttpExecutionStrategyInfluencerrequiredOffloads in interface ExecutionStrategyInfluencer<HttpExecutionStrategy>