Annotation Interface Grpc.GrpcInterceptors

Enclosing interface:
Grpc

@Target({TYPE,METHOD}) @Retention(RUNTIME) public static @interface Grpc.GrpcInterceptors
Declares an ordered list of gRPC interceptors for a target gRPC service class or a gRPC service method of a target class.

The classes specified must be implementations of either ClientInterceptor or ServerInterceptor.

 @GrpcService
 @GrpcInterceptors(ValidationInterceptor.class)
 public class OrderService { ... }
 
 @Unary
 @Interceptors({ValidationInterceptor.class, SecurityInterceptor.class})
 public void updateOrder(Order order) { ... }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    An ordered list of interceptors.
  • Element Details

    • value

      Class<?>[] value
      An ordered list of interceptors.
      Returns:
      the ordered list of interceptors