Filter
- Type for service filterService
- Type for service@FunctionalInterface
public interface GrpcServiceFilterFactory<Filter extends Service,Service>
Modifier and Type | Method and Description |
---|---|
default GrpcServiceFilterFactory<Filter,Service> |
append(GrpcServiceFilterFactory<Filter,Service> before)
Returns a composed factory that first applies the
before factory to its input, and then applies
this factory to the result. |
Filter |
create(Service service)
Create a
Filter using the provided Service . |
Filter create(Service service)
Filter
using the provided Service
.service
- Service
to filter.Filter
using the provided Service
.default GrpcServiceFilterFactory<Filter,Service> append(GrpcServiceFilterFactory<Filter,Service> before)
before
factory to its input, and then applies
this factory to the result.
The order of execution of these filters are in order of append. If 3 filters are added as follows:
builder.append(filter1).append(filter2).append(filter3)accepting a request by a service wrapped by this filter chain, the order of invocation of these filters will be:
filter1 => filter2 => filter3 => service
before
- the factory to apply before this factory is applied.before
factory and then applies this factory.