Module lettuce.core

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 custom ThreadFactory. Implementations are asked through getThreadFactory(String) to provide a thread factory for a given pool name.
Since:
6.1.1
  • Method Details

    • getThreadFactory

      ThreadFactory getThreadFactory​(String poolName)
      Return a ThreadFactory for the given poolName.
      Parameters:
      poolName - a descriptive pool name. Typically used as prefix for thread names.
      Returns:
      the ThreadFactory.