Package com.arjuna.ats.arjuna.utils
Class ThreadUtil
java.lang.Object
com.arjuna.ats.arjuna.utils.ThreadUtil
Provides utilities to manage thread ids.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the string ID for the current thread.static String
getThreadId
(Thread thread) Get the string ID for the specified thread.
-
Constructor Details
-
ThreadUtil
public ThreadUtil()
-
-
Method Details
-
getThreadId
Get the string ID for the current thread.- Returns:
- The thread id
-
getThreadId
Get the string ID for the specified thread.- Parameters:
thread
- The thread.- Returns:
- The thread id
-