/** * Get the string ID for the specified thread. * @param thread The thread. * @return The thread id */ public static String getThreadId(final Thread thread) { final Object id = THREAD_ID.get() ; if (id != null) { return (String)id ; } final String newId = getNextId() ; THREAD_ID.set(newId) ; return newId ; }
/** * Get the string ID for the specified thread. * @param thread The thread. * @return The thread id */ public static String getThreadId(final Thread thread) { final Object id = THREAD_ID.get() ; if (id != null) { return (String)id ; } final String newId = getNextId() ; THREAD_ID.set(newId) ; return newId ; }
/** * Get the string ID for the specified thread. * @param thread The thread. * @return The thread id */ public static String getThreadId(final Thread thread) { final Object id = THREAD_ID.get() ; if (id != null) { return (String)id ; } final String newId = getNextId() ; THREAD_ID.set(newId) ; return newId ; }
/** * Get the string ID for the specified thread. * @param thread The thread. * @return The thread id */ public static String getThreadId(final Thread thread) { final Object id = THREAD_ID.get() ; if (id != null) { return (String)id ; } final String newId = getNextId() ; THREAD_ID.set(newId) ; return newId ; }
/** * Get the string ID for the specified thread. * @param thread The thread. * @return The thread id */ public static String getThreadId(final Thread thread) { final Object id = THREAD_ID.get() ; if (id != null) { return (String)id ; } final String newId = getNextId() ; THREAD_ID.set(newId) ; return newId ; }
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {
final String newId = getNextId(); THREAD_ID.put(thread, newId); if (thread == Thread.currentThread()) {