Package com.backblaze.b2.util
Class B2ExecutorUtils
- java.lang.Object
-
- com.backblaze.b2.util.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)
-
-
-
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
-
-