Module lettuce.core
Package io.lettuce.core.resource
Interface DefaultEventLoopGroupProvider.ThreadFactoryProvider
- All Superinterfaces:
ThreadFactoryProvider
- Enclosing class:
- DefaultEventLoopGroupProvider
public static interface DefaultEventLoopGroupProvider.ThreadFactoryProvider extends 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.0
-
Method Summary
Modifier and Type Method Description ThreadFactorygetThreadFactory(String poolName)Return aThreadFactoryfor the givenpoolName.
-
Method Details
-
getThreadFactory
Return aThreadFactoryfor the givenpoolName.- Specified by:
getThreadFactoryin interfaceThreadFactoryProvider- Parameters:
poolName- a descriptive pool name. Typically used as prefix for thread names.- Returns:
- the
ThreadFactory.
-