Code example for AtomicReference

Methods: get

0
		 * @see net.sf.hajdbc.util.concurrent.RegistryStore#get(java.lang.Object) 
		 */ 
		@Override 
		public V get(Void key)
		{ 
			return this.reference.get();
		} 
 
		/** 
		 * {@inheritDoc} 
		 * @see net.sf.hajdbc.util.concurrent.RegistryStore#clear(java.lang.Object) 
		 */ 
		@Override 
		public V clear(Void key)
		{ 
			return this.reference.getAndSet(null);
		} 
	} 
}