package com.conveyal.taui;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Shared unbounded Thread Executor for the entire server to help limit heavy concurrent operations
 */
public class ExecutorServices {
    public static final ExecutorService light = Executors.newFixedThreadPool(AnalysisServerConfig.lightThreads);
    public static final ExecutorService heavy = Executors.newFixedThreadPool(AnalysisServerConfig.heavyThreads);
}

@@ -117,41 +117,166 @@
 %0A * 
-Shared unbounded Thread E
+Wrapper around two ExecutorServices, making them accessible JVM-wide. The two fields here allow a %22heavy%22 executor%0A * (for slow tasks) and a %22light%22 e
 xecutor 
 for 
@@ -275,29 +275,149 @@
 tor 
+(
 for 
-the entire server
+fast tasks, the %22passing lane%22), each with a number of threads that%0A * can be limited in the main analysis.properties configuration file
  to 
@@ -454,16 +454,17 @@
 erations
+.
 %0A */%0Apub
@@ -467,16 +467,25 @@
 %0Apublic 
+abstract 
 class Ex

add comment on ExecutorServices