Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Bus Proof of Concept #317

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Event Bus Proof of Concept #317

wants to merge 1 commit into from

Conversation

taldekar
Copy link
Contributor

@taldekar taldekar commented Jan 9, 2025

Issue #322

Description of changes:
This POC demonstrates an event bus implementation with a central broker that manages event publishing and subscription.

Key Components:

EventBroker:

  • Hosts the event bus.
  • Exposes methods for posting to the data stream and subscribing to different types of events.

Subscription:

Observer-based subscription (TestSubscriber.java):

  • Accepts an observer of a specific type.
  • Event type identifies the stream.

Returning an observable (TestSubscriber.java):

  • Returns the observable data stream.
  • Allows users to decide how to subscribe without restrictions.

Custom subscription (AmazonQView.java):

  • Implements a subscription method similar to the AuthStatusListener.
  • Showcases an alternative approach to event handling.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@taldekar taldekar force-pushed the taldekar/EventBusPOC branch from a2396f2 to 65a983f Compare January 9, 2025 20:53
@taldekar taldekar requested a review from dingfeli January 14, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant