Package software.amazon.awssdk.utils
Class DaemonThreadFactory
- java.lang.Object
-
- software.amazon.awssdk.utils.DaemonThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class DaemonThreadFactory extends Object implements ThreadFactory
An decorator forThreadFactory
that sets all threads it creates to be daemon threads.
-
-
Constructor Summary
Constructors Constructor Description DaemonThreadFactory(ThreadFactory delegate)
-
-
-
Constructor Detail
-
DaemonThreadFactory
public DaemonThreadFactory(ThreadFactory delegate)
-
-
Method Detail
-
newThread
public Thread newThread(Runnable runnable)
- Specified by:
newThread
in interfaceThreadFactory
-
-