Class ThreadNames

java.lang.Object
com.palantir.nylon.threads.ThreadNames

public final class ThreadNames extends Object
Utility functionality to rename threads as efficiently as possible.
  • Method Details

    • setThreadName

      public static void setThreadName(Thread thread, String name)
      Sets the name of a java thread without native overhead to rename the OS thread. Note that unlike Thread.setName(String) this implementation may not synchronize on the thread object.