Class NamingThreadPoolFactory
- java.lang.Object
-
- org.opendaylight.controller.config.threadpool.util.NamingThreadPoolFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ThreadFactory
public class NamingThreadPoolFactory extends Object implements ThreadFactory, Closeable
Implementation ofThreadFactory
. This class is thread-safe.
-
-
Constructor Summary
Constructors Constructor Description NamingThreadPoolFactory(String namePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getNamePrefix()
Thread
newThread(Runnable r)
-
-
-
Constructor Detail
-
NamingThreadPoolFactory
public NamingThreadPoolFactory(String namePrefix)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable r)
- Specified by:
newThread
in interfaceThreadFactory
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getNamePrefix
public String getNamePrefix()
-
-