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 aGrpcServiceFilterFactory
using the providedGrpcServiceFilterFactory
.
-
Method Details
-
create
Deprecated.Create aGrpcServiceFilterFactory
using the providedGrpcServiceFilterFactory
.- Parameters:
service
-GrpcServiceFilterFactory
to filter.- Returns:
GrpcServiceFilterFactory
using the providedGrpcServiceFilterFactory
.
-
StreamingHttpServiceFilterFactory
and 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 thebuilder
obtained usingGrpcServerBuilder.initializeHttp(GrpcServerBuilder.HttpInitializer)
if HTTP filters are acceptable in your use case.