void init ( ) { if ( ! isEnabled ( ) ) { loggerConfig . info ( "Ted prime instance check is disabled" ) ; return ; } this . primeTaskId = context . tedDaoExt . findPrimeTaskId ( ) ; int periodMs = context . config . intervalDriverMs ( ) ; this . postponeSec = ( int ) Math . round ( ( 1.0 * periodMs * TICK_SKIP_COUNT + 500 + 500 ) / 1000 ) ; // 500ms reserve, 500 for rounding up becomePrime ( ) ; loggerConfig . info ( "Ted prime instance check is enabled, primeTaskId={} isPrime={} postponeSec={}" , primeTaskId , isPrime , postponeSec ) ; initiated = true ; }
after configs read