public class PriorityThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
PriorityThreadFactory(String name,
ExecutorService defaultPool) |
PriorityThreadFactory(String name,
int prio)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ExecutorService |
getDefaultPool() |
Thread |
newThread(Runnable r) |
protected void |
setDefaultPool(ExecutorService pool) |
public PriorityThreadFactory(String name, int prio)
name - prio - public PriorityThreadFactory(String name, ExecutorService defaultPool)
protected void setDefaultPool(ExecutorService pool)
protected ExecutorService getDefaultPool()
public Thread newThread(Runnable r)
newThread in interface ThreadFactoryCopyright © 2014–2015. All rights reserved.