Code examples for AtomicReference

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
10:	final AtomicReference<String> ref = new AtomicReference<String>(); 
11:	Thread t = new Thread() { 
-
21:	return ref.get(); 
Full Snippet Info
8
CodeRank
67:	private AtomicReference<Thread> waitingRecoveryThread = new AtomicReference<>(); 
Full Snippet Info
8
CodeRank
73:	return retVal.get(); 
Full Snippet Info
8
CodeRank
72:	L localContext = this.localContext.get(); 
-
75:	if (!this.localContext.compareAndSet(null, localContext)) { 
76:	return this.localContext.get(); 
Full Snippet Info
8
CodeRank
110:	final AtomicReference<Canvas> mfCanvas = new AtomicReference<Canvas>(); 
-
113:	SwingUtilities.invokeAndWait(new Runnable() { 
-
129:	final Player handler = new net.sf.fmj.mf.media.content.unknown.Handler(mfCanvas.get()); 
-
131:	SwingUtilities.invokeLater(new Runnable() { 
Full Snippet Info
8
CodeRank
56:	private final AtomicReference<Object> localContextRef = new AtomicReference<>(); 
-
58:	private final Session<Object> session = new InfinispanSession<>(this.id, this.metaData, this.attributes, this.localContextRef, this.localContextFactory, this.context, this.mutator, this.remover); 
Full Snippet Info
8
CodeRank
82:	value.get().add(e.getResource()); 
Full Snippet Info
8
CodeRank
57:	AtomicReference<String> message = new AtomicReference<String>(); 
-
63:	ftc.setEventCallback(new FunctionalEventCallback(latch, message)); 
-
74:	assertEquals(inputMessage, message.get()); 
Full Snippet Info
8
CodeRank
69:	workerSetupData = new AtomicReference<WorkerSetupData>(null); 
-
81:	DSuppliers.of(workerSetupData) 
Full Snippet Info
7
CodeRank
44:	AtomicReference<T> atomicRef = new AtomicReference<T>(attachment); 
45:	ctx.setAttachment(atomicRef); 
Full Snippet Info
7
CodeRank
35:	private final AtomicReference<L> localContext = new AtomicReference<>(); 
Full Snippet Info
7
CodeRank
80:	trustManagerRef = new AtomicReference<X509TrustManager>(); 
81:	trustManagerRef.set(loadTrustManager()); 
Full Snippet Info
7
CodeRank
101:	L localContext = this.localContext.get(); 
-
104:	if (!this.localContext.compareAndSet(null, localContext)) { 
105:	return this.localContext.get(); 
Full Snippet Info
8
CodeRank
44:	/* package */ final AtomicReference<HystrixEventNotifier> notifier = new AtomicReference<HystrixEventNotifier>(); 
Full Snippet Info
8
CodeRank
38:	private final AtomicReference<L> localContext = new AtomicReference<>(); 
Full Snippet Info
7
CodeRank
211:	return r.get(); 
Full Snippet Info
7
CodeRank
43:	new AtomicReference<MBeanServer>(); 
Full Snippet Info
7
CodeRank
65:	private final AtomicReference<Object> permitHolder = new AtomicReference<>(null); 
Full Snippet Info
7
CodeRank
126:	Object o = queueStatus.get(); 
-
129:	if (queueStatus.compareAndSet(o, EOF)) { 
-
303:	if (queueStatus.compareAndSet(null, EOF)) { 
Full Snippet Info
7
CodeRank
31:	private final AtomicReference<long[]> values = new AtomicReference<long[]>(); 
-
36:	this.values.set(init); 
Full Snippet Info
7
CodeRank