Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for ConcurrentHashMap (0.66 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            ConcurrentHashMap<Object, Supplier<?>> cache;
            RepositoryCache repositoryCache = session != null ? session.getCache() : null;
            if (repositoryCache == null) {
                return new DefaultModelCache(new ConcurrentHashMap<>());
            } else {
                if (anew) {
                    cache = new ConcurrentHashMap<>();
                    repositoryCache.put(session, KEY, cache);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 6.8K bytes
    - Viewed (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() {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

        final ModelProcessor modelLocator;
    
        final Map<String, String> userProperties = new ConcurrentHashMap<>();
    
        final Map<Path, Holder> modelByPath = new ConcurrentHashMap<>();
    
        final Map<GAKey, Holder> modelByGA = new ConcurrentHashMap<>();
    
        public static class Holder {
            private volatile boolean set;
            private volatile Model model;
    
            Holder() {}
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

    import java.util.Set;
    import java.util.concurrent.ConcurrentHashMap;
    
    import org.apache.maven.api.model.Model;
    
    /**
     * Holds all Models that are known to the reactor. This allows the project builder to resolve imported Models from the
     * reactor when building another project's effective model.
     *
     */
    class ReactorModelPool {
        private final Map<GAKey, Set<Model>> modelsByGa = new ConcurrentHashMap<>();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java

     *
     * @since 3.0
     */
    @Named
    @Singleton
    public class DefaultPluginDescriptorCache implements PluginDescriptorCache {
    
        private Map<Key, PluginDescriptor> descriptors = new ConcurrentHashMap<>(128);
        private Map<Key, Key> keys = new ConcurrentHashMap<>();
    
        public void flush() {
            descriptors.clear();
        }
    
        public Key createKey(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:31:49 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

      private static final String TEST_KEY = "test key";
      private static final String TEST_VALUE = "test value";
    
      // Non-loading versions:
      private final Map<Object, Object> map = new MapMaker().makeMap(); // Returns ConcurrentHashMap
      private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
      private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link ForwardingConcurrentMap}.
     *
     * @author Jared Levy
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

     * existing multiset values.
     *
     * @author mike nonemacher
     */
    
    public class ConcurrentHashMultisetBasherTest extends TestCase {
    
      public void testAddAndRemove_ConcurrentHashMap() throws Exception {
        testAddAndRemove(new ConcurrentHashMap<String, AtomicInteger>());
      }
    
      public void testAddAndRemove_ConcurrentSkipListMap() throws Exception {
        testAddAndRemove(new ConcurrentSkipListMap<String, AtomicInteger>());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/Maps.java

        }
    
        /**
         * 指定されたキーと値を持つ{@link ConcurrentHashMap}を構築するための{@literal Maps}を返します。
         *
         * @param <KEY>
         *            <code>Map</code>のキーの型
         * @param <VALUE>
         *            <code>Map</code>の値ーの型
         * @param key
         *            <code>Map</code>に追加されるキー
         * @param value
         *            <code>Map</code>に追加される値
         * @return 指定されたキーと値を持つ{@link ConcurrentHashMap}を構築するための{@literal Maps}
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top