public static < T extends ExecutorService > T requireNotShutdown ( final T executorService ) { if ( executorService . isShutdown ( ) ) { throw new IllegalArgumentException ( "ExecutorService is shutdown" ) ; } return executorService ; }
Validates the supplied service is not shutdown .