public String makeReport ( String name , String report ) { long increment = Long . valueOf ( report ) ; long currentLineCount = globalLineCounter . addAndGet ( increment ) ; if ( currentLineCount >= maxScenarios ) { return "exit" ; } else { return "ok" ; } }
Handles reports by consumers