Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 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. docs_src/background_tasks/tutorial002_an_py310.py

        if q:
            message = f"found query: {q}\n"
            background_tasks.add_task(write_log, message)
        return q
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(
        email: str, background_tasks: BackgroundTasks, q: Annotated[str, Depends(get_query)]
    ):
        message = f"message to {email}\n"
        background_tasks.add_task(write_log, message)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 683 bytes
    - Click Count (0)
  5. docs_src/background_tasks/tutorial002_py310.py

        if q:
            message = f"found query: {q}\n"
            background_tasks.add_task(write_log, message)
        return q
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(
        email: str, background_tasks: BackgroundTasks, q: str = Depends(get_query)
    ):
        message = f"message to {email}\n"
        background_tasks.add_task(write_log, message)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 643 bytes
    - Click Count (0)
  6. 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