Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for requestDurableHandle (0.08 sec)

  1. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

        public void testMultipleHandles() {
            HandleGuid guid1 = manager.requestDurableHandle("/test/file1.txt", HandleType.DURABLE_V2, 120000, null);
    
            HandleGuid guid2 = manager.requestDurableHandle("/test/file2.txt", HandleType.PERSISTENT, 0, new Smb2LeaseKey());
    
            assertEquals(2, manager.getHandleCount());
    
            HandleInfo info1 = manager.getHandleByGuid(guid1);
            HandleInfo info2 = manager.getHandleByGuid(guid2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. docs/smb3-features/02-persistent-handles-design.md

            }
        }
        
        // Request new durable handle if configured
        if (context.getConfig().isUseDurableHandles()) {
            requestDurableHandle();
        }
        
        // ... rest of normal connection logic ...
    }
    
    private void requestDurableHandle() {
        Configuration config = context.getConfig();
        
        // Determine handle type based on configuration and server capabilities
    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/persistent/PersistentHandleManager.java

         * @param type the handle type
         * @param timeout the timeout in milliseconds
         * @param leaseKey the associated lease key (can be null)
         * @return the handle GUID
         */
        public HandleGuid requestDurableHandle(String path, HandleType type, long timeout, Smb2LeaseKey leaseKey) {
            HandleGuid guid = new HandleGuid();
    
            // Create handle info with empty file ID (will be populated after successful create response)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top