Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for AtomicReference (0.05 sec)

  1. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

            final AtomicBoolean storeCalled = new AtomicBoolean(false);
            final AtomicReference<DataConfig> capturedConfig = new AtomicReference<>();
            final AtomicReference<IndexUpdateCallback> capturedCallback = new AtomicReference<>();
            final AtomicReference<DataStoreParams> capturedParams = new AtomicReference<>();
    
            dataStore = new DataStore() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

    // Since this class only needs CAS on one field, we can avoid this bug by extending AtomicReference
    // instead of using an AtomicReferenceFieldUpdater. This reference stores Thread instances
    // and DONE/INTERRUPTED - they have a common ancestor of Runnable.
    abstract class InterruptibleTask<T extends @Nullable Object>
        extends AtomicReference<@Nullable Runnable> implements Runnable {
      static {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      @GwtIncompatible // Thread
      private void testSupplierThreadSafe(Function<Supplier<Boolean>, Supplier<Boolean>> memoizer)
          throws Throwable {
        AtomicInteger count = new AtomicInteger(0);
        AtomicReference<Throwable> thrown = new AtomicReference<>(null);
        int numThreads = 3;
        Thread[] threads = new Thread[numThreads];
        long timeout = SECONDS.toNanos(60);
    
        Supplier<Boolean> supplier =
            new Supplier<Boolean>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        public void test_getPermissions_withLdapConfig() {
            // Test with LDAP configuration
            final AtomicBoolean activityHelperCalled = new AtomicBoolean(false);
            final AtomicReference<String[]> rolesFromCallback = new AtomicReference<>();
    
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                @Override
                public String getLdapBaseDn() {
                    return "dc=example,dc=com";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SimpleCircuitBreaker.java

        public enum State {
            CLOSED, // Normal operation
            OPEN, // Failing, requests blocked
            HALF_OPEN // Testing recovery
        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger consecutiveFailures = new AtomicInteger(0);
        private final AtomicInteger halfOpenSuccesses = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            assertEquals("ok", FileUtil.readText(fileList.get(0).toFile()));
        }
    
        public void test_updateSystemProperties() {
            final SystemHelper helper = new SystemHelper();
            final AtomicReference<String> appValue = new AtomicReference<>(StringUtil.EMPTY);
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                }
            }, WebConfigService.class.getCanonicalName());
        }
    
        public void test_sendDocuments() {
            documentSizeByQuery = 0L;
            final AtomicReference<String> sentIndex = new AtomicReference<>();
            final List<Map<String, Object>> sentDocList = new ArrayList<>();
            final SearchEngineClient client = new SearchEngineClient() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/Types.java

        return (type instanceof Class) ? ((Class<?>) type).getName() : type.toString();
      }
    
      static @Nullable Type getComponentType(Type type) {
        checkNotNull(type);
        AtomicReference<@Nullable Type> result = new AtomicReference<>();
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SmbCircuitBreaker.java

             */
            OPEN,
    
            /**
             * Testing if service has recovered
             */
            HALF_OPEN
        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger failureCount = new AtomicInteger(0);
        private final AtomicInteger successCount = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

        return new ExecutionSequencer();
      }
    
      /** This reference acts as a pointer tracking the head of a linked list of ListenableFutures. */
      private final AtomicReference<ListenableFuture<@Nullable Void>> ref =
          new AtomicReference<>(immediateVoidFuture());
    
      @LazyInit private ThreadConfinedTaskQueue latestTaskQueue = new ThreadConfinedTaskQueue();
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top