- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for subscribed (0.08 sec)
-
android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java
* @param subscriber The source subscriber context. * @param subscriberMethod the subscribed method. */ SubscriberExceptionContext( EventBus eventBus, Object event, Object subscriber, Method subscriberMethod) { this.eventBus = checkNotNull(eventBus); this.event = checkNotNull(event); this.subscriber = checkNotNull(subscriber);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/Subscribe.java
* the {@link EventBus}. * * <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) @Keep
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 15:46:17 UTC 2025 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/Subscriber.java
static Subscriber create(EventBus bus, Object listener, Method method) { return isDeclaredThreadSafe(method) ? new Subscriber(bus, listener, method) : new SynchronizedSubscriber(bus, listener, method); } /** The event bus this subscriber belongs to. */ @Weak private final EventBus bus; /** The object with the subscriber method. */ @VisibleForTesting final Object target;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java
.containsExactly( i1, s1, s2, // Each integer subscriber immediately dispatches to 2 string subscribers. i2, s1, s2, i3, s1, s2) .inOrder(); } private static Subscriber subscriber( EventBus bus, Object target, String methodName, Class<?> eventType) { try { return Subscriber.create(bus, target, target.getClass().getMethod(methodName, eventType));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
} public void testCreate() { Subscriber s1 = Subscriber.create(bus, this, getTestSubscriberMethod("recordingMethod")); assertThat(s1).isInstanceOf(Subscriber.SynchronizedSubscriber.class); // a thread-safe method should not create a synchronized subscriber Subscriber s2 = Subscriber.create(bus, this, getTestSubscriberMethod("threadSafeMethod")); assertThat(s2).isNotInstanceOf(Subscriber.SynchronizedSubscriber.class); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/Dispatcher.java
private final Object event; private final Subscriber subscriber; private EventWithSubscriber(Object event, Subscriber subscriber) { this.event = event; this.subscriber = subscriber; } } } /** Implementation of {@link #immediate()}. */ private static final class ImmediateDispatcher extends Dispatcher {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
Iterator<Subscriber> two = registry.getSubscribers(""); assertEquals(s1, two.next().target); assertEquals(o1, two.next().target); assertFalse(two.hasNext()); } public static class StringSubscriber { @Subscribe public void handle(String s) {} } public static class IntegerSubscriber { @Subscribe public void handle(Integer i) {} }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/BaseSubscriberFinderTest.java
import static com.google.common.truth.Truth.assertThat; import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.outside.BaseSubscriberFinderTest.Subscriber; import java.util.ArrayList; import java.util.List; public class BaseSubscriberFinderTest extends AbstractEventBusTest<Subscriber> { static class Subscriber { final List<Object> nonSubscriberEvents = new ArrayList<>();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/outside/BaseSubscriberFinderTest.java
import static com.google.common.truth.Truth.assertThat; import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.outside.BaseSubscriberFinderTest.Subscriber; import java.util.ArrayList; import java.util.List; public class BaseSubscriberFinderTest extends AbstractEventBusTest<Subscriber> { static class Subscriber { final List<Object> nonSubscriberEvents = new ArrayList<>();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/PackageSanityTests.java
} private static class DummySubscriber { private final EventBus eventBus = new EventBus(); @Subscribe public void handle(@Nullable Object unused) {} Subscriber toSubscriber() throws Exception { return Subscriber.create(eventBus, this, subscriberMethod()); } SubscriberExceptionContext toContext() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2K bytes - Viewed (0)