com.atlassian.sal.jira.executor
Class JiraThreadLocalDelegateExecutorFactory

java.lang.Object
  extended by com.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory<com.atlassian.sal.jira.executor.JiraThreadLocalContextManager.JiraThreadLocalContext>
      extended by com.atlassian.sal.jira.executor.JiraThreadLocalDelegateExecutorFactory
All Implemented Interfaces:
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory, org.springframework.beans.factory.DisposableBean

public class JiraThreadLocalDelegateExecutorFactory
extends com.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory<com.atlassian.sal.jira.executor.JiraThreadLocalContextManager.JiraThreadLocalContext>
implements org.springframework.beans.factory.DisposableBean

Instance of the delegate executor factory tailored to JIRA


Constructor Summary
JiraThreadLocalDelegateExecutorFactory(JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory, TenantContext tenantContext)
           
 
Method Summary
 ExecutorService createExecutorService(ExecutorService delegate)
           
 ScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
           
 void destroy()
           
 
Methods inherited from class com.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory
createCallable, createExecutor, createRunnable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraThreadLocalDelegateExecutorFactory

public JiraThreadLocalDelegateExecutorFactory(JiraAuthenticationContext authenticationContext,
                                              VelocityRequestContextFactory velocityRequestContextFactory,
                                              TenantContext tenantContext)
Method Detail

createExecutorService

public ExecutorService createExecutorService(ExecutorService delegate)
Specified by:
createExecutorService in interface com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory
Overrides:
createExecutorService in class com.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory<com.atlassian.sal.jira.executor.JiraThreadLocalContextManager.JiraThreadLocalContext>

createScheduledExecutorService

public ScheduledExecutorService createScheduledExecutorService(ScheduledExecutorService delegate)
Specified by:
createScheduledExecutorService in interface com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory
Overrides:
createScheduledExecutorService in class com.atlassian.sal.core.executor.DefaultThreadLocalDelegateExecutorFactory<com.atlassian.sal.jira.executor.JiraThreadLocalContextManager.JiraThreadLocalContext>

destroy

public void destroy()
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean


Copyright © 2002-2014 Atlassian. All Rights Reserved.