@FunctionalInterface
public interface GrpcStubPostProcessor<S extends io.grpc.stub.AbstractStub<S>>
Auto configuration will autodetect GrpcStubPostProcessor beans and
automatically apply them to new gRPC stub instances. In other words you
may register these GrpcStubPostProcessor's as simple @Bean's in
your @Configuration classes.
An GrpcStubPostProcessor can generically declare the stub type that it is interested in, in which case he processor will only be invoked on the matching stub instances.
GrpcStubPostProcessor maybe be ordered using either the
ordered interface or
@Order annotation. Note
that you may also apply @Order to your @Bean methods.
GenericGrpcStubPostProcessor| Modifier and Type | Method and Description |
|---|---|
S |
postProcess(S stub)
Apply this GrpcStubPostProcessor to the given new gRPC stub instance.
|