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 Type
    Method
    Description
    default boolean
    Whether gRPC entry point interceptors should be registered.
    io.grpc.ServerInterceptor
    interceptor(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 endpoint
      typeQualifiers - qualifiers of the invoked endpoint
      typeAnnotations - type annotations of the invoked endpoint
      methodInfo - method information of the endpoint method
      Returns:
      interceptor to register with the gRPC method descriptor