Package org.apache.gravitino.audit
Class CallerContext.CallerContextHolder
java.lang.Object
org.apache.gravitino.audit.CallerContext.CallerContextHolder
- Enclosing class:
- CallerContext
A thread local holder for the CallerContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CallerContextget()Get the CallerContext from the thread local.static voidremove()Remove the CallerContext from the thread local.static voidset(CallerContext context) Set the CallerContext in the thread local.
-
Constructor Details
-
CallerContextHolder
public CallerContextHolder()
-
-
Method Details
-
get
Get the CallerContext from the thread local.- Returns:
- The CallerContext.
-
set
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.
-