synchronized float getAverageWaitMsecsPerHardAdmissionJob ( ) { float averageWaitMsecsPerHardAdmissionJob = - 1f ; if ( ! hardAdmissionMillisQueue . isEmpty ( ) ) { long totalWait = 0 ; for ( Long waitMillis : hardAdmissionMillisQueue ) { totalWait += waitMillis ; } averageWaitMsecsPerHardAdmissionJob = ( ( float ) totalWait ) / hardAdmissionMillisQueue . size ( ) ; } return averageWaitMsecsPerHardAdmissionJob ; }
Get the average waiting msecs per hard admission job entrance .