Code example for ThreadFactory

Methods: newThread

0
     * (non-Javadoc) 
     * 
     * @see java.util.concurrent.ThreadFactory#newThread(java.lang.Runnable) 
     */ 
    public Thread newThread(final Runnable r) {
        final Thread t = defaultFactory.newThread(r);
        t.setName(this.prefix + "_" + t.getName());
        return t;
    } 
 
}