Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 160 for removeAt (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          } else {
            readyQueues.remove(taskQueue)
          }
        }
    
        if (coordinatorWaiting) {
          backend.coordinatorNotify(this@TaskRunner)
        } else {
          startAnotherThread()
        }
      }
    
      private fun beforeRun(task: Task) {
        assertLockHeld()
    
        task.nextExecuteNanoTime = -1L
        val queue = task.queue!!
        queue.futureTasks.remove(task)
        readyQueues.remove(queue)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        val calls = connection.calls
        val index = calls.indexOfFirst { it.get() == this@RealCall }
        check(index != -1)
    
        calls.removeAt(index)
        this.connection = null
    
        if (calls.isEmpty()) {
          connection.idleAtNs = System.nanoTime()
          if (connectionPool.connectionBecameIdle(connection)) {
            return connection.socket()
          }
        }
    
        return null
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            // Clean up old failure records
            long now = System.currentTimeMillis();
            lastFailureTimes.entrySet().removeIf(entry -> now - entry.getValue() > FAILURE_RECOVERY_TIME * 2);
    
            // Clean up old consecutive failure counters
            consecutiveFailures.entrySet().removeIf(entry -> {
                String key = entry.getKey();
                Long lastFailure = lastFailureTimes.get(key);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                    } else {
                        // Remove failed handle
                        handles.remove(path);
                        guidToHandle.remove(info.getCreateGuid());
                        removePersistedHandle(info);
                        log.warn("Reconnection failed, removed handle for: {}", path);
                    }
                }
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/MultiChannelManager.java

            }
        }
    
        /**
         * Removes all channels for a session.
         *
         * @param sessionId the session identifier
         */
        public void removeChannels(String sessionId) {
            ChannelGroup channelGroup = sessionChannels.remove(sessionId);
            if (channelGroup != null) {
                for (ChannelInfo channel : channelGroup.getChannels()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. cmd/local-locker.go

    			if len(*lri) == 1 {
    				// Remove the write lock.
    				delete(l.lockMap, name)
    			} else {
    				// Remove the appropriate read lock.
    				*lri = append((*lri)[:index], (*lri)[index+1:]...)
    				l.lockMap[name] = *lri
    			}
    			delete(l.lockUID, formatUUID(args.UID, entry.idx))
    			return true
    		}
    	}
    
    	// None found return false, perhaps entry removed in previous run.
    	return false
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SecureKeyManager.java

            return null;
        }
    
        /**
         * Remove and securely wipe a session key
         *
         * @param sessionId unique session identifier
         */
        public void removeSessionKey(String sessionId) {
            checkNotClosed();
    
            // Remove from memory maps
            SecretKey secretKey = sessionKeys.remove(sessionId);
            byte[] rawKey = rawKeys.remove(sessionId);
    
            // Wipe the raw key bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/witness/MockWitnessService.java

        /**
         * Simulate a witness unregistration
         *
         * @param registrationId the registration ID to remove
         * @return true if registration was found and removed
         */
        public boolean unregisterWitness(String registrationId) {
            MockRegistration removed = registrations.remove(registrationId);
            if (removed != null) {
                log.debug("Mock unregistered witness: {}", registrationId);
                return true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/SecureKeyManagerTest.java

            // Remove main key
            keyManager.removeSessionKey(sessionId);
    
            // Verify main key is removed (archives stay)
            assertFalse(keyManager.hasSessionKey(sessionId), "Main key should be removed");
            // Note: Archives are not automatically removed when removing main key
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null);
        }
    
        /**
         * Remove a channel
         *
         * @param channel channel to remove
         */
        public void removeChannel(ChannelInfo channel) {
            channels.remove(channel.getChannelId());
            try {
                if (channel.getTransport() != null) {
                    channel.getTransport().close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top