Class ConfluenceInitExecutorServiceProvider

  • All Implemented Interfaces:
    com.atlassian.activeobjects.spi.InitExecutorServiceProvider

    public class ConfluenceInitExecutorServiceProvider
    extends Object
    implements com.atlassian.activeobjects.spi.InitExecutorServiceProvider
    • 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 interface com.atlassian.activeobjects.spi.InitExecutorServiceProvider
        Returns:
        same thread executor for HSQL