Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for registerForNotifications (0.19 sec)

  1. src/test/java/jcifs/internal/witness/WitnessClientTest.java

            TestNotificationListener listener = new TestNotificationListener();
    
            CompletableFuture<WitnessRegistration> future = client.registerForNotifications("\\\\server\\share", serverAddress, listener);
    
            WitnessRegistration registration = future.get(5, TimeUnit.SECONDS);
    
            assertNotNull(registration);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. docs/smb3-features/06-witness-protocol-design.md

            
            // Registration monitoring
            scheduler.scheduleAtFixedRate(this::monitorRegistrations, 10, 10, TimeUnit.SECONDS);
        }
        
        public CompletableFuture<WitnessRegistration> registerForNotifications(
                String shareName, 
                InetAddress serverAddress,
                WitnessNotificationListener listener) {
            
            return CompletableFuture.supplyAsync(() -> {
                try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessClient.java

         * @param serverAddress the server address
         * @param listener the notification listener
         * @return a future that completes with the registration
         */
        public CompletableFuture<WitnessRegistration> registerForNotifications(String shareName, InetAddress serverAddress,
                WitnessNotificationListener listener) {
    
            return CompletableFuture.supplyAsync(() -> {
                try {
                    // Create registration
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                return;
            }
    
            try {
                InetAddress serverAddress = transport.getRemoteAddress().toInetAddress();
    
                witnessClient.registerForNotifications(shareName, serverAddress, new WitnessNotificationHandler()).thenAccept(registration -> {
                    log.info("Registered for witness notifications: share={}, id={}", shareName, registration.getRegistrationId());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top