Package io.lettuce.core.resource
Interface ThreadFactoryProvider
-
- 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 customThreadFactory
. Implementations are asked throughgetThreadFactory(String)
to provide a thread factory for a given pool name.- Since:
- 6.1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreadFactory
getThreadFactory(String poolName)
Return aThreadFactory
for the givenpoolName
.
-
-
-
Method Detail
-
getThreadFactory
ThreadFactory getThreadFactory(String poolName)
Return aThreadFactory
for the givenpoolName
.- Parameters:
poolName
- a descriptive pool name. Typically used as prefix for thread names.- Returns:
- the
ThreadFactory
.
-
-