- All Known Subinterfaces:
DefaultEventLoopGroupProvider.ThreadFactoryProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThreadFactoryProvider
Interface to provide a custom
ThreadFactory. Implementations are asked through
getThreadFactory(String) to provide a thread factory for a given pool name.- Since:
- 6.1.1
-
Method Summary
Modifier and Type Method Description ThreadFactorygetThreadFactory(String poolName)Return aThreadFactoryfor the givenpoolName.
-
Method Details
-
getThreadFactory
Return aThreadFactoryfor the givenpoolName.- Parameters:
poolName- a descriptive pool name. Typically used as prefix for thread names.- Returns:
- the
ThreadFactory.
-