Code example for AtomicReference

Methods: set

0
{ 
	private AtomicReference<ConcurrentHashMap<Long, Status>> _store; 
	 
	public TimelineStore() 
	{ 
		_store = new AtomicReference<ConcurrentHashMap<Long, Status>>(); 
		_store.set(new ConcurrentHashMap<Long, Status>()); 
	} 
 
	public Iterator<Status> iterator() 
	{ 
		return _store.get().values().iterator(); 
	} 
	 
	public Status Get(long id) 
	{ 
		return _store.get().get(id); 
	} 
	 
	public void Add(List<Status> list) 
	{