Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setNotificationEnabled (0.52 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            assertEquals(DirectoryCacheScope.RECURSIVE_TREE, context.getCacheScope());
    
            context.setMaxCacheAge(60000L);
            assertEquals(60000L, context.getMaxCacheAge());
    
            context.setNotificationEnabled(false);
            assertFalse(context.isNotificationEnabled());
    
            context.setNotificationFilter(0xFF);
            assertEquals(0xFF, context.getNotificationFilter());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            DirectoryLeaseContext context =
                    new DirectoryLeaseContext(key, DirectoryLeaseState.DIRECTORY_FULL, DirectoryCacheScope.RECURSIVE_TREE);
    
            context.setMaxCacheAge(60000L);
            context.setNotificationEnabled(true);
            context.setNotificationFilter(0x1F);
    
            // Test encoding and decoding roundtrip
            byte[] buffer = new byte[context.size()];
            int encoded = context.encode(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

            return notificationEnabled;
        }
    
        /**
         * Enables or disables directory change notifications
         * @param notificationEnabled true to enable change notifications
         */
        public void setNotificationEnabled(boolean notificationEnabled) {
            this.notificationEnabled = notificationEnabled;
        }
    
        /**
         * Gets the notification filter flags that specify which changes to monitor
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
Back to top