Code example for ThreadFactory

Methods: newThread

0
     
    /** 
     * A static helper Method to create Threads 
     */ 
    public static Thread newManagedThread(Runnable r) {
        return FACTORY.newThread(r);
    } 
 
    /** 
     * A static helper Method to create Threads 
     */ 
    public static Thread newManagedThread(Runnable r, String name) {
        Thread thread = newManagedThread(r);
        thread.setName(name);
        return thread;
    } 
 
    /** 
     * Adds and runs the given named Runnable on a ThreadPool 
     */ 
    public static void startThread(final Runnable runner, final String name) {