Package org.cache2k.core.concurrency
Class GlobalThreadFactory
- java.lang.Object
-
- org.cache2k.core.concurrency.GlobalThreadFactory
-
- All Implemented Interfaces:
ThreadFactory
public class GlobalThreadFactory extends Object implements ThreadFactory
Factory which names the threads uniquely. If threads stop the previous numbers will be reused.- Author:
- Jens Wilke
-
-
Constructor Summary
Constructors Constructor Description GlobalThreadFactory(String threadNamePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateName(int id)ThreadnewThread(Runnable r)
-