com.atlassian.jira.util.thread
Class OffRequestThreadExecutorImpl

java.lang.Object
  extended by com.atlassian.jira.util.thread.OffRequestThreadExecutorImpl
All Implemented Interfaces:
OffRequestThreadExecutor, Executor

public class OffRequestThreadExecutorImpl
extends Object
implements OffRequestThreadExecutor

The implementation of OffRequestThreadExecutor

Since:
v6.0

Constructor Summary
OffRequestThreadExecutorImpl(JiraAuthenticationContext jiraAuthenticationContext)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffRequestThreadExecutorImpl

public OffRequestThreadExecutorImpl(JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

execute

public void execute(Runnable command)
Description copied from interface: OffRequestThreadExecutor
Executes the code with No user in context via JiraAuthenticationContext

Specified by:
execute in interface OffRequestThreadExecutor
Specified by:
execute in interface Executor
Parameters:
command - the code to run

execute

public void execute(ApplicationUser runAsUser,
                    Runnable command)
Description copied from interface: OffRequestThreadExecutor
Executes the code with the specified user in context via JiraAuthenticationContext

Specified by:
execute in interface OffRequestThreadExecutor
Parameters:
runAsUser - the user to run the code as
command - the code to run


Copyright © 2002-2013 Atlassian. All Rights Reserved.