Class ConfluenceInitExecutorServiceProvider
java.lang.Object
com.atlassian.confluence.activeobjects.ConfluenceInitExecutorServiceProvider
- All Implemented Interfaces:
com.atlassian.activeobjects.spi.InitExecutorServiceProvider
public class ConfluenceInitExecutorServiceProvider
extends Object
implements com.atlassian.activeobjects.spi.InitExecutorServiceProvider
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceInitExecutorServiceProvider
(com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory, com.atlassian.activeobjects.spi.DataSourceProvider dataSourceProvider, com.atlassian.activeobjects.spi.InitExecutorServiceProvider defaultInitExecutorServiceProvider) -
Method Summary
Modifier and TypeMethodDescription@NonNull ExecutorService
In the case of HSQL, confluence will dispatch TenantArrivedEvent synchronously.
-
Constructor Details
-
ConfluenceInitExecutorServiceProvider
public ConfluenceInitExecutorServiceProvider(com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory, com.atlassian.activeobjects.spi.DataSourceProvider dataSourceProvider, com.atlassian.activeobjects.spi.InitExecutorServiceProvider defaultInitExecutorServiceProvider)
-
-
Method Details
-
initExecutorService
In the case of HSQL, confluence will dispatch TenantArrivedEvent synchronously. We then execute the init operations in the same thread, so that we don't have multi threads i.e. transactions attempting DDL against the alleged database HSQL. In other cases it will defer to the default.- Specified by:
initExecutorService
in interfacecom.atlassian.activeobjects.spi.InitExecutorServiceProvider
- Returns:
- same thread executor for HSQL
-