Class MultiThreadedUpgradeRunner
java.lang.Object
com.atlassian.bamboo.upgrade.tasks.MultiThreadedUpgradeRunner
A executor wrapper that allows for multi threaded upgrade tasks to be run easier
-
Constructor Summary
ConstructorDescriptionMultiThreadedUpgradeRunner
(int maxThreads) MultiThreadedUpgradeRunner
(int numberOfThreads, int queueCapacity) MultiThreadedUpgradeRunner
(@NotNull com.atlassian.config.db.HibernateConfig hibernateConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
void
void
-
Constructor Details
-
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(int maxThreads) -
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(int numberOfThreads, int queueCapacity) -
MultiThreadedUpgradeRunner
public MultiThreadedUpgradeRunner(@NotNull @NotNull com.atlassian.config.db.HibernateConfig hibernateConfig)
-
-
Method Details
-
submit
public void submit(@NotNull @NotNull Callable<Void> callable) throws InterruptedException, UpgradeException - Throws:
InterruptedException
UpgradeException
-
waitForTermination
- Throws:
InterruptedException
UpgradeException
-
checkException
- Throws:
UpgradeException
-
getActiveThreads
public int getActiveThreads()
-