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
Constructors Constructor Description ConfluenceInitExecutorServiceProvider(com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory, com.atlassian.activeobjects.spi.DataSourceProvider dataSourceProvider, com.atlassian.activeobjects.spi.InitExecutorServiceProvider defaultInitExecutorServiceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorService
initExecutorService(com.atlassian.tenancy.api.Tenant tenant)
In the case of HSQL, confluence will dispatch TenantArrivedEvent synchronously.
-
-
-
Constructor Detail
-
ConfluenceInitExecutorServiceProvider
public ConfluenceInitExecutorServiceProvider(com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory, com.atlassian.activeobjects.spi.DataSourceProvider dataSourceProvider, com.atlassian.activeobjects.spi.InitExecutorServiceProvider defaultInitExecutorServiceProvider)
-
-
Method Detail
-
initExecutorService
@Nonnull public ExecutorService initExecutorService(@Nonnull com.atlassian.tenancy.api.Tenant tenant)
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
-
-