package nakadi;

import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

class ExecutorServiceSupport {

  private static final Logger logger = LoggerFactory.getLogger(NakadiClient.class.getSimpleName());

  static void shutdown(ExecutorService executorService) {
    executorService.shutdown();

    try {
      if (!executorService.awaitTermination(8, TimeUnit.SECONDS)) {
        executorService.shutdownNow();
        if (!executorService.awaitTermination(16, TimeUnit.SECONDS)) {
          logger.info(String.format("executor service did not shutdown cleanly %s",
              executorService.toString()));
        }
      }
    } catch (InterruptedException e) {
      executorService.shutdownNow();
      Thread.currentThread().interrupt();
    }
  }
}

@@ -21,189 +21,44 @@
 ort 
-com.google.common.util.concurrent.ThreadFactoryBuilder;%0Aimport java.util.concurrent.ExecutorService;%0Aimport java.util.concurrent.Executors;%0Aimport java.util.concurrent.ThreadFactory
+java.util.concurrent.ExecutorService
 ;%0Aim
@@ -151,16 +151,23 @@
 ctory;%0A%0A
+public 
 class Ex
@@ -189,16 +189,16 @@
 pport %7B%0A
-
 %0A  priva
@@ -291,18 +291,25 @@
 me());%0A%0A
-
   
+public 
 static v

Make ExecutorServiceSupport visible to support extensions