Package no.digipost.concurrent.executor
Class DefaultExecutors
- java.lang.Object
-
- no.digipost.concurrent.executor.DefaultExecutors
-
@Deprecated public final class DefaultExecutors extends Object
Deprecated.UseDiggConcurrentinstead. This will eventually be removed.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidensureShutdown(String executorName, ExecutorService executor, Duration timeoutBeforeForcefulShutdown)Deprecated.static voidensureShutdown(ExecutorService executor, Duration timeoutBeforeForcefulShutdown)Deprecated.static ExecutorServiceexternallyManaged(ExecutorService executor)Deprecated.static ExecutorServicefixedThreadPool(int threadAmount, String name)Deprecated.static booleanisExternallyManaged(ExecutorService executor)Deprecated.static ScheduledExecutorServicescheduled(int threadAmount, String name)Deprecated.static ScheduledExecutorServicescheduledSingleThreaded(String name)Deprecated.static ExecutorServicesingleThreaded(String name)Deprecated.static ThreadFactorythreadNamingFactory(String threadBaseName)Deprecated.static ThreadFactorythreadNamingFactory(LongFunction<String> threadName)Deprecated.static ThreadFactorythreadNamingFactory(LongFunction<String> threadName, ThreadFactory backingFactory)Deprecated.
-
-
-
Method Detail
-
fixedThreadPool
public static ExecutorService fixedThreadPool(int threadAmount, String name)
Deprecated.
-
singleThreaded
public static ExecutorService singleThreaded(String name)
Deprecated.- See Also:
DiggConcurrent.singleThreaded(String)
-
scheduledSingleThreaded
public static ScheduledExecutorService scheduledSingleThreaded(String name)
Deprecated.
-
scheduled
public static ScheduledExecutorService scheduled(int threadAmount, String name)
Deprecated.- See Also:
DiggConcurrent.scheduled(int, String)
-
threadNamingFactory
public static ThreadFactory threadNamingFactory(String threadBaseName)
Deprecated.
-
threadNamingFactory
public static ThreadFactory threadNamingFactory(LongFunction<String> threadName)
Deprecated.
-
threadNamingFactory
public static ThreadFactory threadNamingFactory(LongFunction<String> threadName, ThreadFactory backingFactory)
Deprecated.
-
externallyManaged
public static ExecutorService externallyManaged(ExecutorService executor)
Deprecated.
-
isExternallyManaged
public static boolean isExternallyManaged(ExecutorService executor)
Deprecated.
-
ensureShutdown
public static void ensureShutdown(ExecutorService executor, Duration timeoutBeforeForcefulShutdown)
Deprecated.
-
ensureShutdown
public static void ensureShutdown(String executorName, ExecutorService executor, Duration timeoutBeforeForcefulShutdown)
Deprecated.
-
-