|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface OffRequestThreadExecutor
If you ever need to run code in JIRA off a HTTP request thread then you can sue this class to help setup and clean up the thread environment.
JIRA uses a fair fewThreadLocal
variables setup during HTTP requests to contain common information such as
the logged in user and their Locale
and so on say via JiraAuthenticationContext
This class will help you run the off request thread code and clean up after it properly.
Method Summary | |
---|---|
void |
execute(ApplicationUser runAsUser,
Runnable command)
Executes the code with the specified user in context via JiraAuthenticationContext |
void |
execute(Runnable command)
Executes the code with No user in context via JiraAuthenticationContext |
Method Detail |
---|
void execute(Runnable command)
JiraAuthenticationContext
execute
in interface Executor
command
- the code to runvoid execute(ApplicationUser runAsUser, Runnable command)
JiraAuthenticationContext
runAsUser
- the user to run the code ascommand
- the code to run
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |