Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for runAsync (0.03 sec)

  1. src/main/java/jcifs/internal/witness/WitnessClient.java

         * @return a future that completes when unregistration is done
         */
        public CompletableFuture<Void> unregister(WitnessRegistration registration) {
            return CompletableFuture.runAsync(() -> {
                try {
                    registration.setState(WitnessRegistrationState.UNREGISTERING);
    
                    WitnessUnregisterRequest request = new WitnessUnregisterRequest();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  2. docs/smb3-features/06-witness-protocol-design.md

                    throw new RuntimeException(e);
                }
            });
        }
        
        public CompletableFuture<Void> unregister(WitnessRegistration registration) {
            return CompletableFuture.runAsync(() -> {
                try {
                    registration.setState(WitnessRegistrationState.UNREGISTERING);
                    
                    WitnessUnregisterRequest request = new WitnessUnregisterRequest();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

         *
         * @param handle notification handle
         */
        private void startAsyncNotification(ChangeNotificationHandle handle) {
            CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
                while (handle.isActive()) {
                    try {
                        // Note: Actual SMB2 Change Notify implementation would go here
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            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)
  5. 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)
  6. docs/smb3-features/01-smb3-lease-design.md

    ## 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. docs/smb3-features/02-persistent-handles-design.md

            List<CompletableFuture<Void>> futures = new ArrayList<>();
            
            for (HandleInfo handle : handles) {
                futures.add(CompletableFuture.runAsync(() -> {
                    try {
                        reconnectHandle(handle);
                    } catch (Exception e) {
                        log.error("Failed to reconnect handle: " + handle.path, e);
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  8. docs/smb3-features/03-multi-channel-design.md

            final int chunkLength = (i == channelCount - 1) ? 
                length - chunkOffset : chunkSize;
            final ChannelInfo channel = channels.get(i);
            
            CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
                try {
                    Smb2ReadRequest request = new Smb2ReadRequest();
                    request.setFileId(this.fileId);
                    request.setOffset(offset + chunkOffset);
    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. src/main/java/jcifs/smb/SmbSessionImpl.java

        /**
         * Schedule an address change
         *
         * @param newAddress the new server address
         */
        private void scheduleAddressChange(InetAddress newAddress) {
            CompletableFuture.runAsync(() -> {
                try {
                    // This would require transport architecture changes to support address switching
                    // For now, log the event
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top