Package com.arjuna.ats.arjuna.utils
Class ThreadUtil
- java.lang.Object
-
- com.arjuna.ats.arjuna.utils.ThreadUtil
-
public class ThreadUtil extends java.lang.ObjectProvides utilities to manage thread ids.
-
-
Constructor Summary
Constructors Constructor Description ThreadUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetThreadId()Get the string ID for the current thread.static java.lang.StringgetThreadId(java.lang.Thread thread)Get the string ID for the specified thread.
-
-
-
Method Detail
-
getThreadId
public static java.lang.String getThreadId()
Get the string ID for the current thread.- Returns:
- The thread id
-
getThreadId
public static java.lang.String getThreadId(java.lang.Thread thread)
Get the string ID for the specified thread.- Parameters:
thread- The thread.- Returns:
- The thread id
-
-