Interface GrpcEntryPoint.Interceptor.Chain<ReqT,RespT>

Type Parameters:
ReqT - request type
RespT - response type
All Superinterfaces:
Interception.Interceptor.Chain<io.grpc.ServerCall.Listener<ReqT>>
Enclosing interface:
GrpcEntryPoint.Interceptor

public static interface GrpcEntryPoint.Interceptor.Chain<ReqT,RespT> extends Interception.Interceptor.Chain<io.grpc.ServerCall.Listener<ReqT>>
Invocation chain for a gRPC entry point.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.grpc.ServerCall.Listener<ReqT>
    proceed(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers)
    Invoke the next interceptor in the chain.
    default io.grpc.ServerCall.Listener<ReqT>
    proceed(Object[] args)
    Call the next interceptor in line, or finish with the call to the service being intercepted.
  • Method Details

    • proceed

      default io.grpc.ServerCall.Listener<ReqT> proceed(Object[] args) throws Exception
      Description copied from interface: Interception.Interceptor.Chain
      Call the next interceptor in line, or finish with the call to the service being intercepted. Note that that arguments are passed by reference to each interceptor ultimately leading up to the final call to the underlying intercepted target. Callers can mutate the arguments passed directly on the provided array instance.
      Specified by:
      proceed in interface Interception.Interceptor.Chain<ReqT>
      Parameters:
      args - the arguments passed
      Returns:
      the result of the call
      Throws:
      Exception - may throw any checked exceptions thrown by the underlying method, or any runtime exception thrown
    • proceed

      io.grpc.ServerCall.Listener<ReqT> proceed(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers) throws Exception
      Invoke the next interceptor in the chain.
      Parameters:
      call - gRPC server call
      headers - gRPC request headers
      Returns:
      server call listener
      Throws:
      Exception - in case the invocation fails, this should not be handled by most interceptors