Package org.apache.hadoop.hbase
Class ChoreService.ChoreServiceThreadFactory
java.lang.Object
org.apache.hadoop.hbase.ChoreService.ChoreServiceThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- ChoreService
Custom ThreadFactory used with the ScheduledThreadPoolExecutor so that all the threads are
daemon threads, and thus, don't prevent the JVM from shutting down
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private AtomicInteger
private final String
-
Constructor Summary
-
Method Summary
-
Field Details
-
threadPrefix
-
THREAD_NAME_SUFFIX
- See Also:
-
threadNumber
-
-
Constructor Details
-
ChoreServiceThreadFactory
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-