Code example for AtomicLong

Methods: addAndGet

0
	public long incrementAndGetError() { 
		return errors.incrementAndGet();
	} 
 
	public long updateSendBytes(long delta) {
		return sendBytes.addAndGet(delta);
	} 
	 
	public long getErrorCount() { 
		return errors.get();
	} 
	 
	public long getPacketCount() { 
		return packetsRecieved.get();
	} 
	 
	public long getSentBytes() { 
		return sendBytes.get();
	} 
	 
	public long getFrameCount() {