Class NamedThreadFactory

java.lang.Object
org.apache.drill.exec.rpc.NamedThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamedThreadFactory extends Object implements ThreadFactory
ThreadFactory for ExecutorServices that names threads sequentially. Creates Threads named with the prefix specified at construction time. Created threads have the daemon bit set and priority Thread.MAX_PRIORITY.

An instance creates names with an instance-specific prefix suffixed with sequential integers.

Concurrency: See newThread(java.lang.Runnable).

  • Constructor Details

    • NamedThreadFactory

      public NamedThreadFactory(String prefix)
      Constructor.
      Parameters:
      prefix - the string prefix that will be used to name threads created by this factory
  • Method Details