Best code examples for Java 8 ReferenceQueue class (java.lang.ref.ReferenceQueue)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ReferenceQueue class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 ReferenceQueue examples from Open Source projects
This code example shows how to use the following methods:
15:	final private ReferenceQueue<V> queue = new ReferenceQueue<V>(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
53:	private static final ReferenceQueue<Object> handleQueue = new ReferenceQueue<Object>(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: remove
65:	final ReferenceQueue<Class<?>> queue = new ReferenceQueue<Class<?>>(); 
-
77:	Reference<? extends Class<?>> dequeued = queue.remove(TIMEOUT); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep, remove
80:	ReferenceQueue refQueue = new ReferenceQueue(); 
-
84:	if (refQueue.remove(TIMEOUT) == weakRef) { 
-
91:	Thread.sleep(2000); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: remove
44:	ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
-
48:	assertSame("queue didn't return ref in time", ref, queue.remove(5000)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
120:	private final ReferenceQueue<V> _referenceQueue = new ReferenceQueue<V>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
81:	final ReferenceQueue queue = new ReferenceQueue(); 
-
83:	return new SoftReferenceMemoizeFunction<V>(cache, closure, lruProtectionStorage, queue); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
40:	private final ReferenceQueue<V> referenceQueue = new ReferenceQueue<>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
36:	ReferenceQueue<T> referenceQueue = new ReferenceQueue<T>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: poll, remove
238:	ReferenceQueue rq = new ReferenceQueue(); 
239:	assertNull(rq.poll()); 
-
241:	rq.remove(100L); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
11:	private ReferenceQueue refqueue = new ReferenceQueue(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep, remove
80:	ReferenceQueue refQueue = new ReferenceQueue(); 
-
84:	if (refQueue.remove(TIMEOUT) == weakRef) { 
-
91:	Thread.sleep(2000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
29:	new ReferenceQueue<PhantomWrapper>(); 
30:	private static BitmapWatcher sWatcher = new BitmapWatcher(sPhantomQueue); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep, remove
80:	ReferenceQueue refQueue = new ReferenceQueue(); 
-
84:	if (refQueue.remove(TIMEOUT) == weakRef) { 
-
91:	Thread.sleep(2000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
21:	private final ReferenceQueue queue = new ReferenceQueue(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
46:	ReferenceQueue referenceQueue = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: poll, remove
86:	assertNull("Queue is empty.", rq.poll()); 
87:	assertNull("Queue is empty.", rq.remove((long) 1)); 
-
90:	Reference ret = rq.remove(0L); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
49:	private static ReferenceQueue<NativeAESCipherSpi> mQueue = new ReferenceQueue<NativeAESCipherSpi>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
33:	private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep
45:	ReferenceQueue rq = new ReferenceQueue(); 
-
49:	Thread.sleep(1000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
75:	private final ReferenceQueue<T> queue = new ReferenceQueue<>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
34:	private ReferenceQueue<V> mQueue = new ReferenceQueue<V>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
49:	ReferenceQueue referenceQueue = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
29:	private final ReferenceQueue<V> queue = new ReferenceQueue<V>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep, poll, remove
146:	ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
-
151:	Reference ref = queue.remove(); 
-
162:	Thread.sleep(200); 
-
164:	ref = queue.poll(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
28:	private static ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: sleep, poll
25:	ReferenceQueue t = new ReferenceQueue(); 
-
31:	System.out.println(t.poll()); 
-
33:	Thread.sleep(1000); 
34:	System.out.println(t.poll()); 
-
46:	Thread.sleep(1000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep
20:	final ReferenceQueue q = new ReferenceQueue(); 
-
24:	Thread t = new Thread() { 
-
43:	Thread.sleep(2000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
38:	private static ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
46:	private final ReferenceQueue<V> rq = new ReferenceQueue<V>(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: remove
65:	final ReferenceQueue<Class<?>> queue = new ReferenceQueue<Class<?>>(); 
-
77:	Reference<? extends Class<?>> dequeued = queue.remove(TIMEOUT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
40:	private final static ReferenceQueue INSTANCE_CACHE_REF_QUEUE = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
50:	ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: sleep
82:	final ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
-
85:	new Thread(new Runnable() { 
-
100:	Thread.sleep(2000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
44:	private final ReferenceQueue queue = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
111:	private final static ReferenceQueue INSTANCE_CACHE_REF_QUEUE = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
61:	refQueue = new ReferenceQueue<T>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
28:	private final ReferenceQueue<ProcessingTime> queue = new ReferenceQueue<ProcessingTime>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
45:	private final ReferenceQueue<Object> notifyQueue = new ReferenceQueue<Object>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
89:	private final ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
127:	private final ReferenceQueue m_refQueue = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
62:	private final ReferenceQueue refQueue = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
29:	new ReferenceQueue<PhantomWrapper>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
322:	private final ReferenceQueue<T> refQueue = new ReferenceQueue<T>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
27:	private static ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: poll, remove
96:	final ReferenceQueue rq = new ReferenceQueue(); 
-
115:	ref = rq.remove(); 
-
125:	ref = rq.poll(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
53:	private ReferenceQueue<T> mQueue = new ReferenceQueue<T>(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
31:	private static ReferenceQueue q = new ReferenceQueue(); 
Full Snippet Info
5
CodeRank
See Code Examples for Java 8 ReferenceQueue Methods: