Annotation Type GrpcService


@Target(TYPE) @Retention(RUNTIME) public @interface GrpcService
GrpcService is an optional annotation that specifies a class as a Liberty-managed gRPC service. Classes with this annotation must implement io.grpc.BindableService.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends io.grpc.ServerInterceptor>[]
    Specifies the io.grpc.ServerInterceptor classes to be registered with a service
  • Element Details

    • interceptors

      Class<? extends io.grpc.ServerInterceptor>[] interceptors
      Specifies the io.grpc.ServerInterceptor classes to be registered with a service
      Default:
      {}