private synchronized void retryInterest ( RetryContext context ) throws IOException { LOGGER . info ( "Retrying interest: " + context . interest . toUri ( ) ) ; context . face . expressInterest ( context . interest , context , context ) ; totalRetries ++ ; }
Synchronized helper method to prevent multiple threads from mashing totalRetries