Package io.servicetalk.grpc.api
Interface GrpcServiceFilterFactory<Filter extends Service,Service>
- Type Parameters:
Filter- Type for service filterService- Type for service
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated
public interface GrpcServiceFilterFactory<Filter extends Service,Service>
Deprecated.
A factory to create gRPC service filters.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Create aGrpcServiceFilterFactoryusing the providedGrpcServiceFilterFactory.
-
Method Details
-
create
Deprecated.Create aGrpcServiceFilterFactoryusing the providedGrpcServiceFilterFactory.- Parameters:
service-GrpcServiceFilterFactoryto filter.- Returns:
GrpcServiceFilterFactoryusing the providedGrpcServiceFilterFactory.
-
StreamingHttpServiceFilterFactoryand if the access to the decoded payload is necessary, then performing that logic can be done in the particularservice implementation. Please useHttpServerBuilder.appendServiceFilter(StreamingHttpServiceFilterFactory)upon thebuilderobtained usingGrpcServerBuilder.initializeHttp(GrpcServerBuilder.HttpInitializer)if HTTP filters are acceptable in your use case.