protected void setTask ( Task task ) { if ( task == null ) throw new IllegalArgumentException ( "Null task" ) ; this . task = task ; this . taskString = task . toString ( ) ; this . startTime = System . currentTimeMillis ( ) ; this . waitType = task . getWaitType ( ) ; this . priority = task . getPriority ( ) ; this . startTimeout = task . getStartTimeout ( ) ; this . completionTimeout = task . getCompletionTimeout ( ) ; }
Set thetask for this wrapper