Annotation Interface Grpc.GrpcMethod

Enclosing interface:
Grpc

@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Inherited public static @interface Grpc.GrpcMethod
An annotation to mark a class as representing a gRPC service or a method as a gRPC service method.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    io.grpc.MethodDescriptor.MethodType
    Obtain the gRPC method type.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Obtain the name of the method.
  • Element Details

    • name

      String name
      Obtain the name of the method.

      If not set the name of the actual annotated method is used.

      Returns:
      name of the method
      Default:
      ""
    • value

      io.grpc.MethodDescriptor.MethodType value
      Obtain the gRPC method type.
      Returns:
      the gRPC method type