public static void setJobIdOffset ( int jobIdOffset ) { JobPreconditions . checkArgumentNonnegative ( jobIdOffset , "offset can't be negative" ) ; if ( jobIdOffset > JobIdsInternal . RESERVED_JOB_ID_RANGE_START - 500 ) { throw new IllegalArgumentException ( "offset is too close to Integer.MAX_VALUE" ) ; } JobConfig . jobIdOffset = jobIdOffset ; }
Adds an offset to the job IDs . Job IDs are generated and usually start with 1 . This offset shifts the very first job ID .