Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for sendNotification (0.07 seconds)

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

        }
    
        /**
         * Simulate sending a witness notification
         *
         * @param eventType the event type
         * @param resourceName the resource name
         */
        public void sendNotification(WitnessEventType eventType, String resourceName) {
            // In a real implementation, this would send notifications to registered clients
            // For the mock, we just log it
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

            assertTrue(mockService.processHeartbeat(regId, 3));
    
            // 3. Event notifications
            mockService.sendNotification(WitnessEventType.RESOURCE_CHANGE, "\\\\cluster\\share");
            mockService.sendNotification(WitnessEventType.CLIENT_MOVE, "\\\\cluster\\share");
            mockService.sendNotification(WitnessEventType.NODE_AVAILABLE, "\\\\cluster\\share");
    
            // 4. Cleanup and unregistration
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  3. docs_src/background_tasks/tutorial001_py310.py

        with open("log.txt", mode="w") as email_file:
            content = f"notification for {email}: {message}"
            email_file.write(content)
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(email: str, background_tasks: BackgroundTasks):
        background_tasks.add_task(write_notification, email, message="some notification")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 519 bytes
    - Click Count (0)
  4. fastapi/background.py

            with open("log.txt", mode="w") as email_file:
                content = f"notification for {email}: {message}"
                email_file.write(content)
    
    
        @app.post("/send-notification/{email}")
        async def send_notification(email: str, background_tasks: BackgroundTasks):
            background_tasks.add_task(write_notification, email, message="some notification")
            return {"message": "Notification sent in the background"}
        ```
        """
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 1.8K bytes
    - Click Count (0)
Back to Top