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 Details


      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:

      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:

      public static final int AUTHENTICATION
      Security authentication priority.
      See Also:

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

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