- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 387 for eventbus (0.05 seconds)
-
android/guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
*/ package com.google.common.eventbus.outside; import static com.google.common.truth.Truth.assertWithMessage; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.Subscribe; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; import junit.framework.TestCase; /** * Test cases for {@code EventBus} that must not be in the same package. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 1.9K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/package-info.java
* the License. */ /** * {@linkplain EventBus Discouraged} in favor of dependency injection and concurrency frameworks, * EventBus allows publish-subscribe-style communication. * * <p>See the Guava User Guide article on <a * href="https://github.com/google/guava/wiki/EventBusExplained">{@code EventBus}</a>. */ @CheckReturnValue @NullMarked package com.google.common.eventbus;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 03 19:02:39 GMT 2025 - 1K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/DeadEvent.java
* or implied. See the License for the specific language governing permissions and limitations under * the License. */ package com.google.common.eventbus; 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.
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/src/com/google/common/eventbus/SubscriberRegistry.java
*/ private final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> subscribers = Maps.newConcurrentMap(); /** The event bus this registry belongs to. */ @Weak private final EventBus bus; SubscriberRegistry(EventBus bus) { this.bus = checkNotNull(bus); } /** Registers all subscriber methods on the given listener object. */ void register(Object listener) {
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) -
android/guava/src/com/google/common/eventbus/AsyncEventBus.java
* the License. */ package com.google.common.eventbus; import java.util.concurrent.Executor; /** * An {@link EventBus} that takes the Executor of your choice and uses it to dispatch events, * allowing dispatch to occur asynchronously. * * @author Cliff Biffle * @since 10.0 */ public class AsyncEventBus extends EventBus { /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
@NullUnmarked public class SubscriberTest extends TestCase { private static final Object FIXTURE_ARGUMENT = new Object(); private EventBus bus; private boolean methodCalled; private @Nullable Object methodArgument; @Override protected void setUp() throws Exception { bus = new EventBus(); methodCalled = false; methodArgument = null; } public void testCreate() {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/StringCatcher.java
*/ package com.google.common.eventbus; import java.util.ArrayList; import java.util.List; import junit.framework.Assert; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * A simple EventSubscriber mock that records Strings. * * <p>For testing fun, also includes a landmine method that EventBus tests are required not
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 1.4K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/AllowConcurrentEvents.java
* the License. */ package com.google.common.eventbus; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; 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. *
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) -
guava-tests/test/com/google/common/eventbus/SubscriberTest.java
@NullUnmarked public class SubscriberTest extends TestCase { private static final Object FIXTURE_ARGUMENT = new Object(); private EventBus bus; private boolean methodCalled; private @Nullable Object methodArgument; @Override protected void setUp() throws Exception { bus = new EventBus(); methodCalled = false; methodArgument = null; } public void testCreate() {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) -
android/guava-tests/test/com/google/common/eventbus/StringCatcher.java
*/ package com.google.common.eventbus; import java.util.ArrayList; import java.util.List; import junit.framework.Assert; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * A simple EventSubscriber mock that records Strings. * * <p>For testing fun, also includes a landmine method that EventBus tests are required not
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 1.4K bytes - Click Count (0)