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
      java.lang.Class<? extends io.grpc.ServerInterceptor>[] interceptors
      Specifies the io.grpc.ServerInterceptor classes to be registered with a service
    • Element Detail

      • interceptors

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