Code example for AtomicLong

Methods: addAndGet

0
	public long getTotalCount() { 
		return totalCount.get(); 
	} 
	 
	public void updateTotalCountBy(int val) { 
		totalCount.addAndGet(val); 
	} 
}