protected void handle ( Object job ) throws InterruptedException { if ( job != null && job instanceof Runnable ) ( ( Runnable ) job ) . run ( ) ; else log . warn ( "Invalid job: " + job ) ; }
Handle a job . Called by the allocated thread to handle a job . If the job is a Runnable it s run method is called . Otherwise this method needs to be specialized by a derived class to provide specific handling .