Class CallerContext.CallerContextHolder

java.lang.Object
org.apache.gravitino.audit.CallerContext.CallerContextHolder
Enclosing class:
CallerContext

public static class CallerContext.CallerContextHolder extends Object
A thread local holder for the CallerContext.
  • Constructor Details

    • CallerContextHolder

      public CallerContextHolder()
  • Method Details

    • get

      public static CallerContext get()
      Get the CallerContext from the thread local.
      Returns:
      The CallerContext.
    • set

      public static void set(CallerContext context)
      Set the CallerContext in the thread local.
      Parameters:
      context - The CallerContext to set.
    • remove

      public static void remove()
      Remove the CallerContext from the thread local.