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 CallerContext
get()
Get the CallerContext from the thread local.static void
remove()
Remove the CallerContext from the thread local.static void
set
(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.
-