Code example for AtomicInteger

0
/** 
 * @author Joram Barrez 
 */ 
public class ServiceTaskTestMock implements JavaDelegate { 
 
	public static AtomicInteger CALL_COUNT = new AtomicInteger();
	 
	@Override 
	public void execute(DelegateExecution execution) throws Exception {
	  CALL_COUNT.incrementAndGet();
	} 
 
}