@ Override public void join ( final long millis ) throws InterruptedException { for ( final Thread thread : this . threads ) { thread . join ( millis ) ; } }
Join to internal threads and wait millis time per thread or until all threads are finished if millis is 0 .