Annotation Interface GrpcMethod
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Inherited
public @interface GrpcMethod
An annotation to mark a class as representing a gRPC service
or a method as a gRPC service method.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionio.grpc.MethodDescriptor.MethodType
Obtain the gRPC method type. -
Optional Element Summary
-
Element Details
-
type
io.grpc.MethodDescriptor.MethodType typeObtain the gRPC method type.- Returns:
- the gRPC method type
-
-
-
name
String nameObtain the name of the method.If not set the name of the actual annotated method is used.
- Returns:
- name of the method
- Default:
- ""
-