Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for comparingInt (0.29 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            List<ChannelInfo> channelsToRemove = channels.values()
                    .stream()
                    .filter(c -> !c.isPrimary()) // Never remove primary channel
                    .sorted(Comparator.comparingInt(ChannelInfo::getScore)) // Remove lowest scoring first
                    .limit(excessCount)
                    .collect(ArrayList::new, (list, item) -> list.add(item), (list1, list2) -> list1.addAll(list2));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  2. docs/smb3-features/03-multi-channel-design.md

            
            if (isLargeTransfer(message)) {
                // For large transfers, prefer high-bandwidth channels
                return channels.stream()
                    .max(Comparator.comparingInt(c -> c.getRemoteInterface().getLinkSpeed()))
                    .orElseThrow();
            }
            
            if (isMetadataOperation(message)) {
                // For metadata operations, prefer low-latency channels
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top