Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FinalizableReferenceQueue (0.18 sec)

  1. guava/src/com/google/common/base/FinalizableReferenceQueue.java

     * number of well-known problems. Here is how you might use this class instead:
     *
     * <pre>{@code
     * 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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 11 20:51:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    /**
     * Unit test for {@link FinalizableReferenceQueue}.
     *
     * @author Bob Lee
     */
    // - depends on details of GC and classloading
    // - .class files aren't available
    // - possibly no real concept of separate ClassLoaders?
    @AndroidIncompatible
    @GwtIncompatible
    public class FinalizableReferenceQueueTest extends TestCase {
    
      private @Nullable FinalizableReferenceQueue frq;
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top