Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 59 for AtomicReference (0.07 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        ClosingFuture<Object> input2Failed = failedClosingFuture();
        ClosingFuture<String> nonInput = ClosingFuture.from(immediateFuture("value3"));
        AtomicReference<ClosingFuture.Peeker> capturedPeeker = new AtomicReference<>();
        ClosingFuture<TestCloseable> closingFuture =
            ClosingFuture.whenAllComplete(ImmutableList.of(input1, input2Failed))
                .call(
                    (closer, peeker) -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/MoreCollectors.java

     *
     * @author Louis Wasserman
     * @since 21.0
     */
    @GwtCompatible
    public final class MoreCollectors {
    
      /*
       * TODO(lowasser): figure out if we can convert this to a concurrent AtomicReference-based
       * collector without breaking j2cl?
       */
      private static final Collector<Object, ?, Optional<Object>> TO_OPTIONAL =
          Collector.of(
              () -> new ToOptionalState<>(null),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                }
            }, WebConfigService.class.getCanonicalName());
        }
    
        @Test
        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
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 29.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/MoreCollectors.java

     */
    @GwtCompatible
    @IgnoreJRERequirement // Users will use this only if they're already using streams.
    public final class MoreCollectors {
    
      /*
       * TODO(lowasser): figure out if we can convert this to a concurrent AtomicReference-based
       * collector without breaking j2cl?
       */
      private static final Collector<Object, ?, Optional<Object>> TO_OPTIONAL =
          Collector.of(
              () -> new ToOptionalState<>(null),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        ClosingFuture<Object> input2Failed = failedClosingFuture();
        ClosingFuture<String> nonInput = ClosingFuture.from(immediateFuture("value3"));
        AtomicReference<ClosingFuture.Peeker> capturedPeeker = new AtomicReference<>();
        ClosingFuture<TestCloseable> closingFuture =
            ClosingFuture.whenAllComplete(ImmutableList.of(input1, input2Failed))
                .call(
                    (closer, peeker) -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  6. android/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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  7. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            final List<String> sessionIdList = Arrays.asList("session1");
            indexUpdater.setSessionIdList(sessionIdList);
    
            final AtomicReference<Throwable> caughtException = new AtomicReference<>();
            indexUpdater.setUncaughtExceptionHandler((t, e) -> caughtException.set(e));
    
            // Make dataService throw ContainerNotAvailableException
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

    import java.util.concurrent.TimeUnit.MILLISECONDS
    import java.util.concurrent.atomic.AtomicBoolean
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.concurrent.atomic.AtomicReference
    import java.util.concurrent.atomic.AtomicReferenceFieldUpdater
    import kotlin.reflect.KClass
    import okhttp3.Call
    import okhttp3.Callback
    import okhttp3.EventListener
    import okhttp3.Interceptor
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

    import java.util.concurrent.LinkedBlockingQueue
    import java.util.concurrent.SynchronousQueue
    import java.util.concurrent.ThreadPoolExecutor
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicReference
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketEffect.ShutdownConnection
    import mockwebserver3.junit5.StartStop
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
Back to Top