Class B2ExecutorUtils


  • public class B2ExecutorUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      B2ExecutorUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.ThreadFactory createThreadFactory​(java.lang.String nameFormat)  
      static void shutdownAndAwaitTermination​(java.util.concurrent.ExecutorService executor, int gracefulSecs, int otherSecs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • B2ExecutorUtils

        public B2ExecutorUtils()
    • Method Detail

      • shutdownAndAwaitTermination

        public static void shutdownAndAwaitTermination​(java.util.concurrent.ExecutorService executor,
                                                       int gracefulSecs,
                                                       int otherSecs)
      • createThreadFactory

        public static java.util.concurrent.ThreadFactory createThreadFactory​(java.lang.String nameFormat)
        Parameters:
        nameFormat - the format for the thread names, should contain a single %d.
        Returns:
        a new ThreadFactory that takes a string format to help name threads