@ com . netflix . servo . annotations . Monitor ( name = "isBelowRenewThreshold" , description = "0 = false, 1 = true" , type = com . netflix . servo . annotations . DataSourceType . GAUGE ) @ Override public int isBelowRenewThresold ( ) { if ( ( getNumOfRenewsInLastMin ( ) <= numberOfRenewsPerMinThreshold ) && ( ( this . startupTime > 0 ) && ( System . currentTimeMillis ( ) > this . startupTime + ( serverConfig . getWaitTimeInMsWhenSyncEmpty ( ) ) ) ) ) { return 1 ; } else { return 0 ; } }
Checks if the number of renewals is lesser than threshold .