Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for eventos (0.12 sec)

  1. docs/en/docs/advanced/events.md

    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    ### `shutdown` event { #shutdown-event }
    
    To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/entity/SearchLogEventTest.java

            // Create different implementations
            SearchLogEvent event1 = new TestSearchLogEvent("id1", 1L, "type1");
            SearchLogEvent event2 = new NullSearchLogEvent();
            SearchLogEvent event3 = new EmptySearchLogEvent();
    
            // Test polymorphic behavior
            SearchLogEvent[] events = { event1, event2, event3 };
    
            for (SearchLogEvent event : events) {
                // All methods should be callable without exceptions
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/testing-events.md

    # Testing Events: lifespan and startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    When you need `lifespan` to run in your tests, you can use the `TestClient` with a `with` statement:
    
    {* ../../docs_src/app_testing/tutorial004.py hl[9:15,18,27:28,30:32,41:43] *}
    
    
    You can read more details about the ["Running lifespan in tests in the official Starlette documentation site."](https://www.starlette.io/lifespan/#running-lifespan-in-tests)
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:21 UTC 2025
    - 615 bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/ErrorToWarnRewritePolicyTest.java

                    .build();
    
            LogEvent event3 = Log4jLogEvent.newBuilder()
                    .setLoggerName("third.logger")
                    .setLevel(Level.ERROR)
                    .setMessage(new SimpleMessage("test message 3"))
                    .build();
    
            LogEvent result1 = policy.rewrite(event1);
            LogEvent result2 = policy.rewrite(event2);
            LogEvent result3 = policy.rewrite(event3);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("The dead event should wrap the original event.", EVENT, events.get(0).getEvent());
      }
    
      public void testDeadEventPosting() {
        GhostCatcher catcher = new GhostCatcher();
        bus.register(catcher);
    
        bus.post(new DeadEvent(this, EVENT));
    
        List<DeadEvent> events = catcher.getEvents();
        assertEquals("The explicit DeadEvent should be delivered.", 1, events.size());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/ErrorToWarnRewritePolicy.java

        }
    
        /**
         * Rewrites log events by converting ERROR level to WARN level for matching loggers.
         *
         * @param event the log event to potentially rewrite
         * @return the original event or a new event with WARN level if conversion applied
         */
        @Override
        public LogEvent rewrite(final LogEvent event) {
            final String loggerName = event.getLoggerName();
            if (loggerName == null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt

      /**
       * Invoked when an event source has been accepted by the remote peer and may begin transmitting
       * events.
       */
      open fun onOpen(
        eventSource: EventSource,
        response: Response,
      ) {
      }
    
      /**
       * Invoked when a new event has been sent to the client.
       *
       * @param id The `id` line of the event, might be null.
       * @param type The `event` line of the event, might be null.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  8. tests/migrate_test.go

    	}
    	err = DB.Table("events").AutoMigrate(&Event2{})
    	if err != nil {
    		t.Errorf("AutoMigrate err:%v", err)
    	}
    
    	DB.Table("events").Save(&Event2{})
    	DB.Table("events").Save(&Event2{})
    	DB.Table("events").Save(&Event2{})
    
    	events := make([]*Event, 0)
    	DB.Table("events").Find(&events)
    
    	AssertEqual(t, 3, len(events))
    	for _, v := range events {
    		AssertEqual(t, v.ID, v.UID)
    	}
    }
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 65.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessEventType.java

         */
        NODE_AVAILABLE(7);
    
        private final int value;
    
        /**
         * Creates a new WitnessEventType with the specified value.
         *
         * @param value the numeric event type value
         */
        WitnessEventType(int value) {
            this.value = value;
        }
    
        /**
         * Gets the numeric event type value.
         *
         * @return the event type value
         */
        public int getValue() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/witness/WitnessEnumTest.java

            // Verify all values are unique
            for (int i = 0; i < events.length; i++) {
                for (int j = i + 1; j < events.length; j++) {
                    assertNotEquals(events[i].getValue(), events[j].getValue(),
                            "Event types " + events[i] + " and " + events[j] + " have the same value");
                }
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top