Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for ConcurrentHashMap (0.1 sec)

  1. src/main/java/org/codelibs/core/collection/Maps.java

         * @param value the value to be added to the <code>Map</code>
         * @return a {@literal Maps} for constructing a {@link ConcurrentHashMap} with the specified key and value
         */
        public static <KEY, VALUE> Maps<KEY, VALUE> concurrentHashMap(final KEY key, final VALUE value) {
            return new Maps<>(new ConcurrentHashMap<KEY, VALUE>()).$(key, value);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

        private final CIFSContext context;
        private final LeaseManager baseLeaseManager;
        private final ConcurrentHashMap<String, DirectoryCacheEntry> directoryCache;
        private final ConcurrentHashMap<Smb2LeaseKey, String> leaseToPath;
        private final ScheduledExecutorService scheduler;
        private final DirectoryChangeNotifier changeNotifier;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

     */
    public class LeaseManager {
    
        private static final Logger log = LoggerFactory.getLogger(LeaseManager.class);
    
        private final ConcurrentHashMap<Smb2LeaseKey, LeaseEntry> leases;
        private final ConcurrentHashMap<String, Smb2LeaseKey> pathToLease;
        private final ConcurrentHashMap<String, WeakReference<SmbFile>> fileCache;
        private final ReadWriteLock lock;
        private final CIFSContext context;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. 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>());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jun 10 15:17:16 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. docs/smb3-features/04-directory-leasing-design.md

    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeUnit;
    
    public class DirectoryLeaseManager {
        private final CIFSContext context;
        private final LeaseManager baseLeaseManager;  // Reuse existing lease manager
        private final ConcurrentHashMap<String, DirectoryCacheEntry> directoryCache;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessClient.java

        private final InetAddress witnessServer;
        private final int port;
        private final CIFSContext context;
        private final ConcurrentHashMap<String, WitnessRegistration> registrations;
        private final ConcurrentHashMap<String, WitnessNotificationListener> listeners;
        private final ConcurrentHashMap<String, CompletableFuture<Void>> asyncNotifyTasks;
        private final ScheduledExecutorService scheduler;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        /**
         * Creates and returns a new instance of {@link ConcurrentHashMap}.
         *
         * @param <K> the key type of {@link ConcurrentHashMap}
         * @param <V> the value type of {@link ConcurrentHashMap}
         * @return a new instance of {@link ConcurrentHashMap}
         * @see ConcurrentHashMap#ConcurrentHashMap()
         */
        public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMap() {
            return new ConcurrentHashMap<>();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  8. 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);
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jul 23 00:58:06 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

     */
    public class PersistentHandleManager {
    
        private static final Logger log = LoggerFactory.getLogger(PersistentHandleManager.class);
    
        private final ConcurrentHashMap<String, HandleInfo> handles;
        private final ConcurrentHashMap<HandleGuid, HandleInfo> guidToHandle;
        private final Path stateDirectory;
        private final ScheduledExecutorService scheduler;
        private final CIFSContext context;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (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() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top