public static < T > Future < T > submit ( Callable < T > task , String message ) { logger . debug ( "Task " + ( ++ tasks ) + " submitted to shared thread pool. " + message ) ; return getThreadPool ( ) . submit ( task ) ; }
Queues up a task and adds a log entry .