- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for Background (0.18 sec)
-
guava/src/com/google/common/base/FinalizableReference.java
@J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public interface FinalizableReference { /** * Invoked on a background thread after the referent has been garbage collected unless security * restrictions prevented starting a background thread, in which case this method is invoked when * new references are created. */ void finalizeReferent();
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) -
guava/src/com/google/common/base/FinalizableReferenceQueue.java
startFinalizer = getStartFinalizer(finalizer); } /** The actual reference queue that our background thread will poll. */ final ReferenceQueue<Object> queue; final PhantomReference<Object> frqRef; /** Whether or not the background thread started successfully. */ final boolean threadStarted; /** Constructs a new queue. */ public FinalizableReferenceQueue() {
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) -
android/guava/src/com/google/common/base/FinalizableReferenceQueue.java
startFinalizer = getStartFinalizer(finalizer); } /** The actual reference queue that our background thread will poll. */ final ReferenceQueue<Object> queue; final PhantomReference<Object> frqRef; /** Whether or not the background thread started successfully. */ final boolean threadStarted; /** Constructs a new queue. */ public FinalizableReferenceQueue() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 13.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
public Boolean call() { return blockingCallable.isRunning(); } }, directExecutor()); // Wait for the first task to be started in the background. It will block until we explicitly // stop it. blockingCallable.waitForStart(); // Give the second task a chance to (incorrectly) start up while the first task is running.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 16.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
public Boolean call() { return blockingCallable.isRunning(); } }, directExecutor()); // Wait for the first task to be started in the background. It will block until we explicitly // stop it. blockingCallable.waitForStart(); // Give the second task a chance to (incorrectly) start up while the first task is running.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 16.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FinalizableWeakReference.java
import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import javax.annotation.CheckForNull; /** * Weak reference with a {@code finalizeReferent()} method which a background thread invokes after * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link * ReferenceQueue}. * * @author Bob Lee * @since 2.0 */ @J2ktIncompatible @GwtIncompatible
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FinalizablePhantomReference.java
import java.lang.ref.PhantomReference; import java.lang.ref.ReferenceQueue; import javax.annotation.CheckForNull; /** * Phantom reference with a {@code finalizeReferent()} method which a background thread invokes * after the garbage collector reclaims the referent. This is a simpler alternative to using a * {@link ReferenceQueue}. * * <p>Unlike a normal phantom reference, this reference will be cleared automatically.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/FinalizableSoftReference.java
import java.lang.ref.ReferenceQueue; import java.lang.ref.SoftReference; import javax.annotation.CheckForNull; /** * Soft reference with a {@code finalizeReferent()} method which a background thread invokes after * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link * ReferenceQueue}. * * @author Bob Lee * @since 2.0 */ @J2ktIncompatible @GwtIncompatible
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 23 15:09:35 GMT 2023 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
import java.util.concurrent.TimeoutException; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A TimeLimiter that runs method calls in the background using an {@link ExecutorService}. If the * time limit expires for a given method call, the thread running the call will be interrupted. * * @author Kevin Bourrillion * @author Jens Nyman * @since 1.0 */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jun 27 14:21:11 GMT 2023 - 9.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
public void finalizeReferent() { finalizeReferentCalled = true; } } /** * Keeps a weak reference to the underlying reference queue. When this reference is cleared, we * know that the background thread has stopped and released its strong reference. */ private WeakReference<ReferenceQueue<Object>> queueReference; public void testThatFinalizerStops() { weaklyReferenceQueue();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 10 08:40:05 GMT 2023 - 4.8K bytes - Viewed (0)