public Thread newThread(Runnable runnable) {
      Thread thread = new Thread(runnable, PREFIX + INSTANCE_NUM.getAndIncrement());
      thread.setDaemon(true);
      return thread;
    }
Wait until this service has shutdown. Returns true if shutdown occurred within the timeout
and false otherwise.
<p>
This is currently exposed at the package private level for tests only.
samza-core/src/main/java/org/apache/samza/coordinator/StreamPartitionCountMonitor.java