Package com.atlassian.jira.util.thread
Class OffRequestThreadExecutorImpl
java.lang.Object
com.atlassian.jira.util.thread.OffRequestThreadExecutorImpl
- All Implemented Interfaces:
OffRequestThreadExecutor,Executor
The implementation of OffRequestThreadExecutor
- Since:
- v6.0
-
Constructor Summary
ConstructorsConstructorDescriptionOffRequestThreadExecutorImpl(JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ApplicationUser runAsUser, Runnable command) Executes the code with the specified user in context viaJiraAuthenticationContextvoidExecutes the code with No user in context viaJiraAuthenticationContext
-
Constructor Details
-
OffRequestThreadExecutorImpl
-
-
Method Details
-
execute
Description copied from interface:OffRequestThreadExecutorExecutes the code with No user in context viaJiraAuthenticationContext- Specified by:
executein interfaceExecutor- Specified by:
executein interfaceOffRequestThreadExecutor- Parameters:
command- the code to run
-
execute
Description copied from interface:OffRequestThreadExecutorExecutes the code with the specified user in context viaJiraAuthenticationContext- Specified by:
executein interfaceOffRequestThreadExecutor- Parameters:
runAsUser- the user to run the code ascommand- the code to run
-