Class BambooThreadLocalContextManager
- java.lang.Object
-
- com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext>
@Component public class BambooThreadLocalContextManager extends Object implements com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext>
-
-
Constructor Summary
Constructors Constructor Description BambooThreadLocalContextManager(ScopesRequestCacheDelegate scopesRequestCacheDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearThreadLocalContext()
Clear the thread local context on the current threadcom.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext
getThreadLocalContext()
Get the thread local context of the current threadvoid
setThreadLocalContext(com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext context)
Set the thread local context on the current thread
-
-
-
Constructor Detail
-
BambooThreadLocalContextManager
public BambooThreadLocalContextManager(ScopesRequestCacheDelegate scopesRequestCacheDelegate)
-
-
Method Detail
-
getThreadLocalContext
public com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread- Specified by:
getThreadLocalContext
in interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext>
- Returns:
- The thread local context
-
setThreadLocalContext
public void setThreadLocalContext(com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext context)
Set the thread local context on the current thread- Specified by:
setThreadLocalContext
in interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext>
- Parameters:
context
- The context to set
-
clearThreadLocalContext
public void clearThreadLocalContext()
Clear the thread local context on the current thread- Specified by:
clearThreadLocalContext
in interfacecom.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.bamboo.executor.BambooThreadLocalContextManager.BambooThreadLocalContext>
-
-