- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for FinalizableReferenceQueue (0.28 seconds)
-
guava/src/com/google/common/base/FinalizableReferenceQueue.java
* number of well-known problems. Here is how you might use this class instead: * * {@snippet : * public class MyServer implements Closeable { * private static final FinalizableReferenceQueue frq = new FinalizableReferenceQueue(); * // You might also share this between several objects. * * private static final Set<Reference<?>> references = Sets.newConcurrentHashSet();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 14.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
@RunWith(JUnit4.class) @NullUnmarked public class FinalizableReferenceQueueTest { private @Nullable FinalizableReferenceQueue frq; @After public void tearDown() throws Exception { frq = null; } @Test public void testFinalizeReferentCalled() { MockReference reference = new MockReference(frq = new FinalizableReferenceQueue()); GcFinalization.awaitDone(() -> reference.finalizeReferentCalled); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 8.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
/* * The following tests check that the use of FinalizableReferenceQueue does not prevent the * ClassLoader that loaded that class from later being garbage-collected. If anything continues * to reference the FinalizableReferenceQueue class then its ClassLoader cannot be * garbage-collected, even if there are no more instances of FinalizableReferenceQueue itself. * The code in FinalizableReferenceQueue goes to considerable trouble to ensure that there are
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 7.6K bytes - Click Count (0)