Package com.mongodb.internal.thread
Class DaemonThreadFactory
- java.lang.Object
-
- com.mongodb.internal.thread.DaemonThreadFactory
-
- All Implemented Interfaces:
java.util.concurrent.ThreadFactory
public class DaemonThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
Custom thread factory for scheduled executor service that creates daemon threads. Otherwise, applications that neglect to close the client will not exit.This class should not be considered a part of the public API.
-
-
Constructor Summary
Constructors Constructor Description DaemonThreadFactory(java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Thread
newThread(java.lang.Runnable runnable)
-