The simplest implementation of this interface is just:
class SimpleThreadFactory implements ThreadFactory { public Thread newThread(Runnable r) { return new Thread(r); } } The {@link Executors#defaultThreadFactory} method provides a moreuseful simple implementation, that sets the created thread context to known values before returning it.
@since 1.5
@author Doug Lea
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |