public static long getNextGenerationId ( ) { // ENG-14511- these calls may hit assertion failures in testing environments try { return UniqueIdGenerator . makeIdFromComponents ( System . currentTimeMillis ( ) , m_generationId . incrementAndGet ( ) , MpInitiator . MP_INIT_PID ) ; } catch ( Throwable t ) { // Try resetting the generation m_generationId . set ( 0L ) ; return UniqueIdGenerator . makeIdFromComponents ( System . currentTimeMillis ( ) , m_generationId . incrementAndGet ( ) , MpInitiator . MP_INIT_PID ) ; } }
Get a unique id for the next generation for export .