- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 35 for subscribed (0.12 seconds)
-
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); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 21:52:12 GMT 2025 - 4.8K bytes - Click Count (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<>();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 1.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/eventbus/outside/AbstractEventBusTest.java
private @Nullable H subscriber; H getSubscriber() { return subscriber; } @Override protected void setUp() throws Exception { subscriber = createSubscriber(); EventBus bus = new EventBus(); bus.register(subscriber); bus.post(EVENT); } @Override protected void tearDown() throws Exception { subscriber = null; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.6K bytes - Click Count (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() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/AllowConcurrentEvents.java
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Marks an event subscriber method as being thread-safe. This annotation indicates that EventBus * may invoke the event subscriber simultaneously from multiple threads. * * <p>This does not mark the method, and so should be used in combination with {@link Subscribe}. * * @author Cliff Biffle * @since 10.0 */ @Retention(RetentionPolicy.RUNTIME)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.2K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/DeadEvent.java
import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.base.MoreObjects; /** * Wraps an event that was posted, but which had no subscribers and thus could not be delivered. * * <p>Registering a DeadEvent subscriber is useful for debugging or logging, as it can detect * misconfigurations in a system's event distribution. * * @author Cliff Biffle * @since 10.0 */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.1K bytes - Click Count (0) -
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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java
} interface Interface2 extends Interface1 { @Override @Subscribe void declaredIn1AnnotatedIn2(Object o); @Override @Subscribe void annotatedIn1And2(Object o); @Override @Subscribe void annotatedIn1And2AndClass(Object o); void declaredIn2AnnotatedInClass(Object o); @Subscribe void annotatedIn2(Object o); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/outside/AbstractNotAnnotatedInSuperclassTest.java
* limitations under the License. */ package com.google.common.eventbus.outside; import static com.google.common.truth.Truth.assertThat; import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.outside.AbstractNotAnnotatedInSuperclassTest.SubClass; import java.util.ArrayList; import java.util.List;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 2K bytes - Click Count (0)