Package software.amazon.awssdk.utils
Class ExecutorUtils
- java.lang.Object
-
- software.amazon.awssdk.utils.ExecutorUtils
-
@SdkProtectedApi public final class ExecutorUtils extends Object
Utilities that make it easier to create, use and destroyExecutorServices.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutorServicenewSingleDaemonThreadExecutor(int queueCapacity, String threadNameFormat)Create a bounded-queue executor with one thread for performing background tasks.static ExecutorunmanagedExecutor(Executor executor)Wrap an executor in a type that cannot be closed, or shut down.
-
-
-
Method Detail
-
newSingleDaemonThreadExecutor
public static ExecutorService newSingleDaemonThreadExecutor(int queueCapacity, String threadNameFormat)
Create a bounded-queue executor with one thread for performing background tasks. The thread in the service is marked as a daemon thread.
-
-