Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 224 for References (0.21 sec)

  1. guava-testlib/src/com/google/common/testing/GcFinalization.java

       *   <li>clearing weak references to unreachable referents
       *   <li>enqueuing weak references to unreachable referents in their reference queue
       * </ul>
       */
      @DoNotMock("Implement with a lambda")
      public interface FinalizationPredicate {
        boolean isDone();
      }
    
      /**
       * Waits until the given weak reference is cleared, invoking the garbage collector as necessary to
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/internal/Finalizer.java

        }
      }
    
      /**
       * Cleans up the given reference and any other references already in the queue. Catches and logs
       * all throwables.
       *
       * @return true if the caller should continue to wait for more references to be added to the
       *     queue, false if the associated FinalizableReferenceQueue is no longer referenced.
       */
      private boolean cleanUp(Reference<?> firstReference) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/internal/Finalizer.java

        }
      }
    
      /**
       * Cleans up the given reference and any other references already in the queue. Catches and logs
       * all throwables.
       *
       * @return true if the caller should continue to wait for more references to be added to the
       *     queue, false if the associated FinalizableReferenceQueue is no longer referenced.
       */
      private boolean cleanUp(Reference<?> firstReference) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Aug 23 12:54:09 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        assertNotNull(sepStopwatchA.get());
        // Clear all references to the Stopwatch and wait for it to be gc'd.
        sepStopwatchA.set(null);
        GcFinalization.awaitClear(sepStopwatchRef.get());
        // Return a weak reference to the parallel ClassLoader. This is the reference that should
        // eventually become clear if there are no other references to the ClassLoader.
        return new WeakReference<ClassLoader>(sepLoader);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/FinalizableReference.java

    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Implemented by references that have code to run after garbage collection of their referents.
     *
     * @see FinalizableReferenceQueue
     * @author Bob Lee
     * @since 2.0
     */
    @DoNotMock("Use an instance of one of the Finalizable*Reference classes")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/RemovalNotification.java

     * already garbage collected.
     *
     * <p>Like other {@code Entry} instances associated with {@code CacheBuilder}, this class holds
     * strong references to the key and value, regardless of the type of references the cache may be
     * using.
     *
     * @author Charles Fry
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class RemovalNotification<K, V>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        if (threadStarted) {
          return;
        }
    
        Reference<?> reference;
        while ((reference = queue.poll()) != null) {
          /*
           * This is for the benefit of phantom references. Weak and soft references will have already
           * been cleared by this point.
           */
          reference.clear();
          try {
            ((FinalizableReference) reference).finalizeReferent();
          } catch (Throwable t) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

        if (threadStarted) {
          return;
        }
    
        Reference<?> reference;
        while ((reference = queue.poll()) != null) {
          /*
           * This is for the benefit of phantom references. Weak and soft references will have already
           * been cleared by this point.
           */
          reference.clear();
          try {
            ((FinalizableReference) reference).finalizeReferent();
          } catch (Throwable t) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMaker.java

    import java.util.concurrent.ConcurrentMap;
    import javax.annotation.CheckForNull;
    
    /**
     * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped
     * in {@linkplain WeakReference weak} references.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()
     *     .concurrencyLevel(4)
     *     .weakKeys()
     *     .makeMap();
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/FinalizableReference.java

    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * Implemented by references that have code to run after garbage collection of their referents.
     *
     * @see FinalizableReferenceQueue
     * @author Bob Lee
     * @since 2.0
     */
    @DoNotMock("Use an instance of one of the Finalizable*Reference classes")
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 1.4K bytes
    - Viewed (1)
Back to top