Class ThreadUtil

java.lang.Object
com.arjuna.ats.arjuna.utils.ThreadUtil

public class ThreadUtil extends Object
Provides utilities to manage thread ids.
  • Constructor Details

    • ThreadUtil

      public ThreadUtil()
  • Method Details

    • getThreadId

      public static String getThreadId()
      Get the string ID for the current thread.
      Returns:
      The thread id
    • getThreadId

      public static String getThreadId(Thread thread)
      Get the string ID for the specified thread.
      Parameters:
      thread - The thread.
      Returns:
      The thread id