public class

OffRequestThreadExecutorImpl

extends Object
implements OffRequestThreadExecutor
java.lang.Object
   ↳ com.atlassian.jira.util.thread.OffRequestThreadExecutorImpl

Class Overview

The implementation of OffRequestThreadExecutor

Summary

Public Constructors
OffRequestThreadExecutorImpl(JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
void execute(Runnable command)
Executes the code with No user in context via JiraAuthenticationContext
void execute(ApplicationUser runAsUser, Runnable command)
Executes the code with the specified user in context via JiraAuthenticationContext
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.thread.OffRequestThreadExecutor
From interface java.util.concurrent.Executor

Public Constructors

public OffRequestThreadExecutorImpl (JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public void execute (Runnable command)

Executes the code with No user in context via JiraAuthenticationContext

Parameters
command the code to run

public void execute (ApplicationUser runAsUser, Runnable command)

Executes the code with the specified user in context via JiraAuthenticationContext

Parameters
runAsUser the user to run the code as
command the code to run