public static void validateSessionIdRange ( final int low , final int high ) { if ( low > high ) { throw new ConfigurationException ( "low session id value " + low + " must be <= high value " + high ) ; } if ( Math . abs ( ( long ) high - low ) > Integer . MAX_VALUE ) { throw new ConfigurationException ( "reserved range to too large" ) ; } }
Validate the range of session ids based on a high and low value provided which accounts for the values wrapping .