Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for CompletableFuture (0.06 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotEmpty
    import assertk.assertions.isNotNull
    import java.io.IOException
    import java.net.InetAddress
    import java.util.concurrent.CompletableFuture
    import java.util.concurrent.TimeUnit.SECONDS
    import javax.net.ssl.SNIHostName
    import javax.net.ssl.SNIMatcher
    import javax.net.ssl.SNIServerName
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.StandardConstants
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. docs/smb3-features/02-persistent-handles-design.md

            this.retryDelay = 1000;  // 1 second
        }
        
        public CompletableFuture<SmbFile> reconnectHandle(SmbFile file, Exception cause) {
            String path = file.getPath();
            HandleInfo info = handleManager.getHandleForReconnect(path);
            
            if (info == null) {
                return CompletableFuture.failedFuture(
                    new IOException("No durable handle available for reconnection"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            // Use default timeout if not specified or invalid
            if (timeoutSeconds <= 0) {
                timeoutSeconds = DEFAULT_LEASE_BREAK_TIMEOUT;
            }
    
            CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
                handleLeaseBreak(key, newState);
            });
    
            try {
                future.get(timeoutSeconds, TimeUnit.SECONDS);
            } catch (TimeoutException e) {
    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. docs/smb3-features/03-multi-channel-design.md

        int chunkSize = length / channelCount;
        List<CompletableFuture<Void>> futures = new ArrayList<>();
        
        for (int i = 0; i < channelCount; i++) {
            final int chunkOffset = i * chunkSize;
            final int chunkLength = (i == channelCount - 1) ? 
                length - chunkOffset : chunkSize;
            final ChannelInfo channel = channels.get(i);
            
            CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

     * that, whenever possible, it is strongly preferred to modify those libraries to return {@code
     * ListenableFuture} directly.
     *
     * <p>For interoperability between {@code ListenableFuture} and <b>{@code CompletableFuture}</b>,
     * consider <a href="https://github.com/lukas-krecan/future-converter">Future Converter</a>.
     *
     * @author Sven Mawson
     * @since 10.0 (replacing {@code Futures.makeListenable}, which existed in 1.0)
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. docs/smb3-features/01-smb3-lease-design.md

    - Optimize lease break acknowledgment timing
    
    ## 10. Error Handling
    
    ### 10.1 Lease Break Timeout
    ```java
    public void handleLeaseBreakWithTimeout(Smb2LeaseKey key, int newState) {
        CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
            handleLeaseBreak(key, newState);
        });
        
        try {
            future.get(5, TimeUnit.SECONDS);  // 5 second timeout
        } catch (TimeoutException e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

     *
     * <p>Caffeine's API for asynchronous operations uses {@code CompletableFuture}: <a
     * href="https://www.javadoc.io/doc/com.github.ben-manes.caffeine/caffeine/latest/com.github.benmanes.caffeine/com/github/benmanes/caffeine/cache/AsyncLoadingCache.html#get(K)">{@code
     * AsyncLoadingCache.get}</a> returns a {@code CompletableFuture}, and implementations of <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

    import java.security.PrivilegedExceptionAction;
    import java.util.Collections;
    import java.util.EnumSet;
    import java.util.List;
    import java.util.Objects;
    import java.util.Set;
    import java.util.concurrent.CompletableFuture;
    import java.util.concurrent.CopyOnWriteArrayList;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. docs/smb3-features/04-directory-leasing-design.md

                // Cancel any pending notifications
                cancelNotification(handle);
            }
        }
        
        private void startAsyncNotification(ChangeNotificationHandle handle) {
            CompletableFuture.runAsync(() -> {
                while (handle.active) {
                    try {
                        // Send SMB2 Change Notify request
                        Smb2ChangeNotifyRequest request = new Smb2ChangeNotifyRequest();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top