Annotation Interface Grpc.GrpcInterceptor
- Enclosing interface:
Grpc
Specifies that a class is a gRPC interceptor.
The class should be a discoverable service implementation.
The annotated class can be a ServerInterceptor.
@Interceptor
public class ValidationInterceptor
implements io.grpc.ServerInterceptor { ... }
Or the annotated class can be a ClientInterceptor.
@Interceptor
public class ValidationInterceptor
implements io.grpc.ClientInterceptor { ... }
This annotation is optional if the Interceptors
annotation or is used to associate the interceptor with the target class.
It is required when a interceptor binding
is used.