Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CompletableFuture (0.08 sec)

  1. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     * </ul>
     *
     * <h4>{@link java.util.concurrent.CompletableFuture} / {@link java.util.concurrent.CompletionStage}
     * </h4>
     *
     * <p>Users of {@code CompletableFuture} will likely want to continue using {@code
     * CompletableFuture}. {@code FluentFuture} is targeted at people who use {@code ListenableFuture},
     * who can't use Java 8, or who want an API more focused than {@code CompletableFuture}. (If you
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessClient.java

            // Stop all async notification tasks first
            List<CompletableFuture<Void>> taskFutures = new ArrayList<>(asyncNotifyTasks.values());
            for (CompletableFuture<Void> task : taskFutures) {
                task.cancel(true);
            }
            asyncNotifyTasks.clear();
    
            // Unregister all active registrations
            List<CompletableFuture<Void>> unregisterFutures = new ArrayList<>();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. docs/smb3-features/06-witness-protocol-design.md

        }
        
        public CompletableFuture<WitnessRegistration> registerForNotifications(
                String shareName, 
                InetAddress serverAddress,
                WitnessNotificationListener listener) {
            
            return CompletableFuture.supplyAsync(() -> {
                try {
                    // Create registration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

             */
            public CompletableFuture<Void> getNotificationFuture() {
                return notificationFuture;
            }
    
            /**
             * Sets the future for asynchronous notification completion
             * @param future the notification future to set
             */
            public void setNotificationFuture(CompletableFuture<Void> future) {
                this.notificationFuture = future;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/witness/WitnessClientTest.java

    import static org.mockito.Mockito.lenient;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.net.InetAddress;
    import java.util.concurrent.CompletableFuture;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.TimeUnit;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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