Package software.amazon.awssdk.utils
Class NamedThreadFactory
- java.lang.Object
-
- software.amazon.awssdk.utils.NamedThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class NamedThreadFactory extends Object implements ThreadFactory
An decorator forThreadFactory
that allows naming threads based on a format.
-
-
Constructor Summary
Constructors Constructor Description NamedThreadFactory(ThreadFactory delegate, String namePrefix)
-
-
-
Constructor Detail
-
NamedThreadFactory
public NamedThreadFactory(ThreadFactory delegate, String namePrefix)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable runnable)
- Specified by:
newThread
in interfaceThreadFactory
-
-