public final class Executors
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static java.util.concurrent.ThreadFactory | 
namedThreadFactory(java.lang.String baseName)
Returns a  
ThreadFactory which creates named threads with the specific base thread name. | 
static void | 
shutdown(java.util.concurrent.ExecutorService executor)
A wrapper around  
ExecutorService.shutdown() that works around a JDK 1.5 bug. | 
static java.util.List<java.lang.Runnable> | 
shutdownNow(java.util.concurrent.ExecutorService executor)
A wrapper around  
ExecutorService.shutdownNow() that works around a JDK 1.5 bug. | 
public static java.util.concurrent.ThreadFactory namedThreadFactory(java.lang.String baseName)
ThreadFactory which creates named threads with the specific base thread name.baseName - the base thread name.java.lang.NullPointerException - if baseName is null.public static void shutdown(java.util.concurrent.ExecutorService executor)
ExecutorService.shutdown() that works around a JDK 1.5 bug.public static java.util.List<java.lang.Runnable> shutdownNow(java.util.concurrent.ExecutorService executor)
ExecutorService.shutdownNow() that works around a JDK 1.5 bug.