- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for AtomicBoolean (0.12 seconds)
-
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
private ServerSocket makeMyServerExampleWithFrq(AtomicBoolean finalizeReferentRan) throws IOException { MyServerExampleWithFrq myServer = MyServerExampleWithFrq.create(finalizeReferentRan); assertThat(myServer.serverSocket.isClosed()).isFalse(); return myServer.serverSocket; } @Test public void testMyServerExampleWithFrq() throws Exception { AtomicBoolean finalizeReferentRan = new AtomicBoolean(false);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Feb 27 21:20:19 GMT 2026 - 8.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/QueryProcessorTest.java
import org.opensearch.index.query.QueryBuilders; public class QueryProcessorTest extends UnitFessTestCase { @Test public void test_executeWithFilter() { final AtomicBoolean called = new AtomicBoolean(false); QueryProcessor queryProcessor = new QueryProcessor() { protected FilterChain createDefaultFilterChain() { return (context, query, boost) -> {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 3.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/JobExecutorTest.java
assertEquals("Executed: ", result); } @Test public void test_addShutdownListener() { // Test adding shutdown listener AtomicBoolean shutdownCalled = new AtomicBoolean(false); ShutdownListener listener = new ShutdownListener() { @Override public void onShutdown() { shutdownCalled.set(true); } };
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.4K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AccessTimeoutTarget.java
private static final int MAX_LOOP_COUNT = 10; /** The thread being monitored. */ protected Thread runningThread; /** Flag indicating if the thread is still running. */ protected AtomicBoolean running = new AtomicBoolean(); /** * Constructs an AccessTimeoutTarget with the specified thread. * @param thread The thread to monitor. */ public AccessTimeoutTarget(final Thread thread) {Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
Monitor monitor, boolean expectedIsOccupied, boolean expectedIsOccupiedByCurrentThread, int expectedOccupiedDepth) { AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java
Monitor monitor, boolean expectedIsOccupied, boolean expectedIsOccupiedByCurrentThread, int expectedOccupiedDepth) { AtomicBoolean actualIsOccupied = new AtomicBoolean(); AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean(); AtomicInteger actualOccupiedDepth = new AtomicInteger(); AtomicReference<Throwable> thrown = new AtomicReference<>(); joinUninterruptibly(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts
gradleRootProject.extensions.findByType<BuildScanConfiguration>()?.run { buildFinished { if ((cacheMissInBuildLogic as AtomicBoolean).get() || (cacheMissInMainBuild as AtomicBoolean).get()) { tag("CACHE_MISS") } } } } } fun buildCacheEnabled() = gradle.startParameter.isBuildCacheEnabled
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Apr 11 20:57:49 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
@Test public void test_shutdownCommonsHttpClient_withException() throws Exception { // Create a hook that simulates an exception scenario AtomicBoolean exceptionHandled = new AtomicBoolean(false); FessCurtainFinallyHook customHook = new FessCurtainFinallyHook() { @Override public void hook(final FwAssistantDirector assistantDirector) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
static final class Interruptenator extends Thread { final AtomicBoolean shutdown; Interruptenator(Thread interruptee) { this(interruptee, new AtomicBoolean(false)); } @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait. Interruptenator(Thread interruptee, AtomicBoolean shutdown) { super( () -> { while (!shutdown.get()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
static final class Interruptenator extends Thread { final AtomicBoolean shutdown; Interruptenator(Thread interruptee) { this(interruptee, new AtomicBoolean(false)); } @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait. Interruptenator(Thread interruptee, AtomicBoolean shutdown) { super( () -> { while (!shutdown.get()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 8.8K bytes - Click Count (0)