Class SynchronyScheduledExecutorServiceProvider
java.lang.Object
com.atlassian.confluence.plugins.synchrony.bootstrap.SynchronyScheduledExecutorServiceProvider
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
@Component
public class SynchronyScheduledExecutorServiceProvider
extends Object
implements org.springframework.beans.factory.DisposableBean
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SynchronyScheduledExecutorServiceProvider
public SynchronyScheduledExecutorServiceProvider()
-
-
Method Details
-
getExecutorService
Returns scheduled executor service. NOTE: This executor shouldn't be used in cases when you expect to have many threads running simultaneously or when locking is used. ScheduledThreadPoolExecutor ignores maximumPoolSize value and never creates new threads if corePoolSize is reached and all threads are busy. It should only be used in cases when you need to schedule task with some delay or some repeatable task. UseSynchronyExecutorServiceProvider.getExecutorService()
for all other cases. See https://jira.atlassian.com/browse/CONFSRVDEV-21049 for more details.- Returns:
- Scheduled executor service
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-