Package javax.jmdns.impl.util
Class NamedThreadFactory
java.lang.Object
javax.jmdns.impl.util.NamedThreadFactory
- All Implemented Interfaces:
ThreadFactory
Custom thread factory which sets the name to make it easier to identify where the pooled threads were created.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_delegate
-
_namePrefix
-
-
Constructor Details
-
NamedThreadFactory
Constructs the thread factory.- Parameters:
namePrefix
- a prefix to append to thread names (will be separated from the default thread name by a space.)
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-