@ Nullable public String getWaitingLockString ( final ThreadInfo threadInfo ) { if ( null == threadInfo . getLockInfo ( ) ) { return null ; } else { return threadInfo . getLockName ( ) + " held by " + threadInfo . getLockOwnerName ( ) ; } }
Get a string identifying the lock that this thread is waiting on .