public ParallelEngine setWaitMode ( WaitMode mode , long timeout , TimeUnit unit ) { this . mode = mode ; this . timeout = timeout ; this . unit = unit ; return this ; }
Sets the wait mode the number of units and their scale before the wait for the background activities times out .