static class ChoreService.ChoreServiceThreadFactory extends Object implements ThreadFactory
Modifier and Type | Field and Description |
---|---|
private static String |
THREAD_NAME_SUFFIX |
private AtomicInteger |
threadNumber |
private String |
threadPrefix |
Constructor and Description |
---|
ChoreService.ChoreServiceThreadFactory(String threadPrefix) |
private final String threadPrefix
private static final String THREAD_NAME_SUFFIX
private AtomicInteger threadNumber
public ChoreService.ChoreServiceThreadFactory(String threadPrefix)
threadPrefix
- The prefix given to all threads created by this factorypublic Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.