Code example for AtomicLong

Methods: get

0
		public final AtomicLong value1 = new AtomicLong(0L);
 
		@Override 
		public String toString() {
			StringBuilder sb = new StringBuilder();
			long v1 = value1.get();
			long v2 = value2.get();
 
			sb.append("[").append(v1).append(":").append(v2).append("]");
			return sb.toString();
		} 
	} 
 
	public static class Key { 
		public static final String replicationQueueSize = "_replicationQueueSize";
		public static final String replicationPoolSize = "_replicationPoolSize";
		public static final String parserCacheSize = "_parserCacheSize";
 
		public static final String THREAD_COUNT = "THREAD_COUNT";
		public static final String THREAD_COUNT_REJECT_COUNT = "THREAD_COUNT_REJECT_COUNT";
		public static final String READ_WRITE_TIMES = "READ_WRITE_TIMES";