Class InterceptorPriorities


  • public class InterceptorPriorities
    extends Object
    Constants that represent a priority ordering that interceptors registered with a gRPC service or method will be applied.
    • Field Detail

      • CONTEXT

        public static final int CONTEXT
        Context priority.

        Interceptors with this priority typically only perform tasks such as adding state to the call Context.

        See Also:
        Constant Field Values
      • TRACING

        public static final int TRACING
        Tracing priority.

        Tracing and metrics interceptors are typically applied after any context interceptors so that they can trace and gather metrics on the whole call stack of remaining interceptors.

        See Also:
        Constant Field Values
      • AUTHENTICATION

        public static final int AUTHENTICATION
        Security authentication priority.
        See Also:
        Constant Field Values
      • AUTHORIZATION

        public static final int AUTHORIZATION
        Security authorization priority.
        See Also:
        Constant Field Values
      • USER

        public static final int USER
        User-level priority. This value is also used as a default priority for application-supplied interceptors.
        See Also:
        Constant Field Values