Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 61 for ConcurrentHashMap (0.07 seconds)

  1. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/nullaway/NullawayStatusService.kt

    import java.io.Closeable
    import java.util.concurrent.ConcurrentHashMap
    
    internal abstract class NullawayStatusService : BuildService<BuildServiceParameters.None>, Closeable {
        private val projectsWithNullAwayEnabled = ConcurrentHashMap.newKeySet<String>()
        private val projectsWithUncheckedDeps = ConcurrentHashMap.newKeySet<String>()
        private val projectsToEnableNullaway = ConcurrentHashMap.newKeySet<String>()
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Aug 20 13:18:23 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt

            val rootProjectDir: DirectoryProperty
        }
    
        @get:Inject
        abstract val execOperations: ExecOperations
    
        private
        val suspiciousDaemons = ConcurrentHashMap<String, MutableSet<String>>()
    
        private
        val daemonPids = ConcurrentHashMap.newKeySet<String>()
    
        private
        val logger = Logging.getLogger(DaemonTracker::class.java)
    
        override fun close() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
        return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jun 10 15:17:16 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    
    /**
     * MapMaker emulation.
     *
     * @author Charles Fry
     */
    public final class MapMaker {
      private int initialCapacity = 16;
    
      public MapMaker() {}
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  5. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

      private final OkHttpClient client;
      private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>());
      private final BlockingQueue<HttpUrl> queue;
      private final ConcurrentHashMap<String, AtomicInteger> hostnames = new ConcurrentHashMap<>();
      private final int hostLimit;
    
      public Crawler(OkHttpClient client, int queueLimit, int hostLimit) {
        this.client = client;
        this.queue = new LinkedBlockingQueue<>(queueLimit);
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jul 23 00:58:06 GMT 2025
    - 5K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

        private final TypeRegistry typeRegistry;
    
        private final ConcurrentHashMap<String, ArtifactHandler> allHandlers;
    
        @Inject
        public DefaultArtifactHandlerManager(TypeRegistry typeRegistry) {
            this.typeRegistry = requireNonNull(typeRegistry, "null typeRegistry");
            this.allHandlers = new ConcurrentHashMap<>();
        }
    
        @Override
        public void onEvent(Object event) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

                exchange.waitForProcessed();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    
        private final ConcurrentHashMap<TransferResourceIdentifier, Boolean> ongoing = new ConcurrentHashMap<>();
    
        @Override
        public void transferInitiated(TransferEvent event) {
            ongoing.putIfAbsent(new TransferResourceIdentifier(event.getResource()), Boolean.TRUE);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link ForwardingConcurrentMap}.
     *
     * @author Jared Levy
     */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/LegacyArtifactHandlerManager.java

     */
    package org.apache.maven.artifact.handler.manager;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    
    import org.apache.maven.artifact.handler.ArtifactHandler;
    import org.apache.maven.artifact.handler.DefaultArtifactHandler;
    import org.apache.maven.eventspy.AbstractEventSpy;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

       * figure out what to do with <a
       * href="https://github.com/openjdk/jdk/blob/c25c4896ad9ef031e3cddec493aef66ff87c48a7/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java#L4830">{@code
       * ConcurrentHashMap} support for {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getAddAllUnsupportedNonePresentMethod() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top