public static String getTimeoutMessage ( long timeout , TimeUnit unit ) { return String . format ( "Timeout of %d %s reached" , timeout , requireNonNull ( unit , "unit" ) ) ; }
Utility method that produce the message of the timeout .