public final class CleanableExecutors extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CleanableExecutors.CleanableThreadPoolExecutor |
static interface |
CleanableExecutors.ThreadCleaner |
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
newCachedThreadPool() |
static ExecutorService |
newCachedThreadPool(String poolName) |
static ExecutorService |
newCachedThreadPool(String poolName,
Iterable<CleanableExecutors.ThreadCleaner> cleaners) |
static ExecutorService |
newFixedThreadPool(int nThreads) |
static ExecutorService |
newFixedThreadPool(String poolName,
int nThreads) |
static ExecutorService |
newFixedThreadPool(String poolName,
int nThreads,
Iterable<CleanableExecutors.ThreadCleaner> cleaners) |
static ExecutorService |
newSizeLimitedThreadPool(int maxSize) |
static ExecutorService |
newSizeLimitedThreadPool(String poolName,
int maxSize) |
static ExecutorService |
newSizeLimitedThreadPool(String poolName,
int maxSize,
Iterable<CleanableExecutors.ThreadCleaner> cleaners) |
public static ExecutorService newFixedThreadPool(int nThreads)
public static ExecutorService newFixedThreadPool(String poolName, int nThreads)
public static ExecutorService newFixedThreadPool(String poolName, int nThreads, Iterable<CleanableExecutors.ThreadCleaner> cleaners)
public static ExecutorService newCachedThreadPool()
public static ExecutorService newCachedThreadPool(String poolName)
public static ExecutorService newCachedThreadPool(String poolName, Iterable<CleanableExecutors.ThreadCleaner> cleaners)
public static ExecutorService newSizeLimitedThreadPool(int maxSize)
public static ExecutorService newSizeLimitedThreadPool(String poolName, int maxSize)
public static ExecutorService newSizeLimitedThreadPool(String poolName, int maxSize, Iterable<CleanableExecutors.ThreadCleaner> cleaners)
Copyright © 2020. All rights reserved.