Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for subscribe (0.18 sec)

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

     *
     * <p>Unless also annotated with @{@link AllowConcurrentEvents}, event subscriber methods will be
     * invoked serially by each event bus that they are registered with.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.METHOD)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        @Subscribe
        public void notOverriddenInSubclass(Object o) {
          notOverriddenInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenNotAnnotatedInSubclass(Object o) {
          overriddenNotAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenAndAnnotatedInSubclass(Object o) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedAndAbstractInSuperclassTest.java

    import com.google.common.eventbus.Subscribe;
    import com.google.common.eventbus.outside.AnnotatedAndAbstractInSuperclassTest.SubClass;
    import java.util.List;
    
    public class AnnotatedAndAbstractInSuperclassTest extends AbstractEventBusTest<SubClass> {
      abstract static class SuperClass {
        @Subscribe
        public abstract void overriddenAndAnnotatedInSubclass(Object o);
    
        @Subscribe
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/eventbus/EventBusTest.java

            new RuntimeException("but culottes have a tendancy to ride up!");
        final Object subscriber =
            new Object() {
              @Subscribe
              public void throwExceptionOn(String message) {
                throw exception;
              }
            };
        eventBus.register(subscriber);
        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

            new RuntimeException("but culottes have a tendancy to ride up!");
        final Object subscriber =
            new Object() {
              @Subscribe
              public void throwExceptionOn(String message) {
                throw exception;
              }
            };
        eventBus.register(subscriber);
        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/eventbus/outside/AbstractNotAnnotatedInSuperclassTest.java

     */
    
    package com.google.common.eventbus.outside;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.Lists;
    import com.google.common.eventbus.Subscribe;
    import com.google.common.eventbus.outside.AbstractNotAnnotatedInSuperclassTest.SubClass;
    import java.util.List;
    
    public class AbstractNotAnnotatedInSuperclassTest extends AbstractEventBusTest<SubClass> {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java

    import com.google.common.eventbus.Subscribe;
    import com.google.common.eventbus.outside.DeepInterfaceTest.SubscriberClass;
    import java.util.List;
    
    public class DeepInterfaceTest extends AbstractEventBusTest<SubscriberClass> {
      interface Interface1 {
        @Subscribe
        void annotatedIn1(Object o);
    
        @Subscribe
        void annotatedIn1And2(Object o);
    
        @Subscribe
        void annotatedIn1And2AndClass(Object o);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java

        eventBus.register(this);
      }
    
      @Benchmark
      void postStrings(int reps) {
        for (int i = 0; i < reps; i++) {
          eventBus.post("hello there");
        }
      }
    
      @Subscribe
      public void handleStrings(String string) {
        // Nothing to do here.
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

        boolean ready = true;
        List<Object> eventsReceived = Lists.newArrayList();
    
        @Subscribe
        public void listenForStrings(String event) {
          eventsReceived.add(event);
          ready = false;
          try {
            bus.post(SECOND);
          } finally {
            ready = true;
          }
        }
    
        @Subscribe
        public void listenForDoubles(Double event) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/eventbus/outside/AnnotatedNotAbstractInSuperclassTest.java

        @Subscribe
        public void notOverriddenInSubclass(Object o) {
          notOverriddenInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenNotAnnotatedInSubclass(Object o) {
          overriddenNotAnnotatedInSubclassEvents.add(o);
        }
    
        @Subscribe
        public void overriddenAndAnnotatedInSubclass(Object o) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 08 21:35:40 GMT 2022
    - 4.1K bytes
    - Viewed (0)
Back to top