public class

ThreadPoolAsyncTaskExecutor

extends Object
implements AsyncTaskExecutor
java.lang.Object
   ↳ com.atlassian.plugin.osgi.spring.ThreadPoolAsyncTaskExecutor

Class Overview

Executes spring tasks using a cached thread pool that expands as necessary. Overrides the default Spring executor that spawns a new thread for every application context creation.

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.task.AsyncTaskExecutor
Public Constructors
ThreadPoolAsyncTaskExecutor()
Public Methods
void execute(Runnable task)
Executes the runnable
void execute(Runnable task, long startTimeout)
Executes the runnable
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.core.task.AsyncTaskExecutor
From interface org.springframework.core.task.TaskExecutor

Public Constructors

public ThreadPoolAsyncTaskExecutor ()

Public Methods

public void execute (Runnable task)

Executes the runnable

Parameters
task The runnable task

public void execute (Runnable task, long startTimeout)

Executes the runnable

Parameters
task The runnable task
startTimeout The start timeout (ignored)