Class ConfluenceThreadLocalContextManager
- java.lang.Object
-
- com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext>
public class ConfluenceThreadLocalContextManager extends Object implements com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext>
Manages all thread local state for Confluence
-
-
Constructor Summary
Constructors Constructor Description ConfluenceThreadLocalContextManager(brave.Tracing tracing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearThreadLocalContext()Clear the thread local context on the current threadcom.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContextgetThreadLocalContext()Get the thread local context of the current threadvoidsetScopesRequestCacheDelegate(ScopesRequestCacheDelegate scopesRequestCacheDelegate)voidsetThreadLocalContext(com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext context)Set the thread local context on the current thread
-
-
-
Method Detail
-
getThreadLocalContext
public com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread- Specified by:
getThreadLocalContextin interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext>- Returns:
- The thread local context
-
setThreadLocalContext
public void setThreadLocalContext(com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext context)
Set the thread local context on the current thread- Specified by:
setThreadLocalContextin interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext>- Parameters:
context- The context to set
-
clearThreadLocalContext
public void clearThreadLocalContext()
Clear the thread local context on the current thread- Specified by:
clearThreadLocalContextin interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.confluence.api.impl.sal.ConfluenceThreadLocalContextManager.ThreadLocalContext>
-
setScopesRequestCacheDelegate
public void setScopesRequestCacheDelegate(ScopesRequestCacheDelegate scopesRequestCacheDelegate)
-
-