Interface GrpcEntryPoint.EntryPoints
- Enclosing class:
GrpcEntryPoint
public static interface GrpcEntryPoint.EntryPoints
A contract used from generated code to invoke gRPC entry point interceptors.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether gRPC entry point interceptors should be registered.io.grpc.ServerInterceptorinterceptor(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo) Interceptor that triggers entry point interceptors.
-
Method Details
-
hasInterceptors
default boolean hasInterceptors()Whether gRPC entry point interceptors should be registered.The default preserves compatibility for custom implementations.
- Returns:
- whether interceptors are available
-
interceptor
io.grpc.ServerInterceptor interceptor(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo) Interceptor that triggers entry point interceptors.- Parameters:
descriptor- descriptor of the invoked endpointtypeQualifiers- qualifiers of the invoked endpointtypeAnnotations- type annotations of the invoked endpointmethodInfo- method information of the endpoint method- Returns:
- interceptor to register with the gRPC method descriptor
-