Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  1. android/guava/src/com/google/common/eventbus/Dispatcher.java

            try {
              Event nextEvent;
              while ((nextEvent = queueForThread.poll()) != null) {
                while (nextEvent.subscribers.hasNext()) {
                  nextEvent.subscribers.next().dispatchEvent(nextEvent.event);
                }
              }
            } finally {
              dispatching.remove();
              queue.remove();
            }
          }
        }
    
        private static final class Event {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/eventbus/Subscriber.java

        this.method = method;
        method.setAccessible(true);
    
        this.executor = bus.executor();
      }
    
      /** Dispatches {@code event} to this subscriber using the proper executor. */
      final void dispatchEvent(Object event) {
        executor.execute(
            () -> {
              try {
                invokeSubscriberMethod(event);
              } catch (InvocationTargetException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

            }
    
            try {
                final List<EventInfo> events = fetchNewEvents();
                for (final EventInfo event : events) {
                    dispatchEvent(event);
                }
            } catch (final Exception e) {
                logger.debug("Failed to process events in poll.", e);
            }
    
            try {
                cleanupExpiredDocuments();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            configEvent.name = "config_updated";
            coordinatorHelper.dispatchEvent(configEvent);
            assertEquals("config", received.get());
    
            final EventInfo dictEvent = new EventInfo();
            dictEvent.name = "dict_updated";
            coordinatorHelper.dispatchEvent(dictEvent);
            assertEquals("dict", received.get());
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
Back to Top