Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for SubscriberRegistry (0.1 seconds)

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

    import java.util.concurrent.CopyOnWriteArraySet;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Registry of subscribers to a single event bus.
     *
     * @author Colin Decker
     */
    final class SubscriberRegistry {
    
      /**
       * All registered subscribers, indexed by event type.
       *
       * <p>The {@link CopyOnWriteArraySet} values make it easy and relatively lightweight to get an
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link SubscriberRegistry}.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class SubscriberRegistryTest extends TestCase {
    
      private final SubscriberRegistry registry = new SubscriberRegistry(new EventBus());
    
      public void testRegister() {
        assertEquals(0, registry.getSubscribersForTesting(String.class).size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 5.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/eventbus/EventBus.java

      private final String identifier;
      private final Executor executor;
      private final SubscriberExceptionHandler exceptionHandler;
    
      private final SubscriberRegistry subscribers = new SubscriberRegistry(this);
      private final Dispatcher dispatcher;
    
      /** Creates a new EventBus named "default". */
      public EventBus() {
        this("default");
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 12.7K bytes
    - Click Count (0)
Back to Top