com.alipay.remoting
Class NamedThreadFactory
java.lang.Object
com.alipay.remoting.NamedThreadFactory
- All Implemented Interfaces:
- ThreadFactory
public class NamedThreadFactory
- extends Object
- implements ThreadFactory
Thread factory to name the thread purposely
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedThreadFactory
public NamedThreadFactory()
NamedThreadFactory
public NamedThreadFactory(String name)
NamedThreadFactory
public NamedThreadFactory(String preffix,
boolean daemon)
newThread
public Thread newThread(Runnable r)
- Create a thread.
- Specified by:
newThread in interface ThreadFactory
- See Also:
ThreadFactory.newThread(java.lang.Runnable)
Copyright © 2018. All rights reserved.