void putBackup ( int sequence , Callable task ) { head = Math . max ( head , sequence ) ; callableCounter ++ ; int index = toIndex ( sequence ) ; ringItems [ index ] = task ; isTask [ index ] = true ; sequences [ index ] = sequence ; }
Puts the task for the given sequence