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

Support for asynchronous events #57

Open
peholmst opened this issue Jun 24, 2014 · 5 comments
Open

Support for asynchronous events #57

peholmst opened this issue Jun 24, 2014 · 5 comments

Comments

@peholmst
Copy link
Owner

Make it possible to publish events in one thread and notify listeners in another thread:

  • all listeners / thread
  • one listener / thread
@peholmst peholmst modified the milestones: 0.1.0, 0.0.4 Aug 26, 2014
@fastnsilver
Copy link
Contributor

Petter, might you integrate Reactor?

E.g., like in http://spring.io/guides/gs/messaging-reactor/.

Are you thinking to have EventBus have overloaded methods that support asynchronous behavior with a boolean flag? Or an alternate implementation (e.g, ScopedAsyncEventBus)?

I'd be interested in lending a hand here.

@peholmst
Copy link
Owner Author

I have no experience with Reactor, but if you think it would make sense to integrate with it, I'll consider it.

My idea was to extend the current EventBus with a new interface and implementation that support async methods in addition to the current synchronous ones. This is what I've been playing around with: https://github.com/peholmst/vaadin4spring/tree/feature/eventbus_enhancements

The biggest challenges will probably be how to make the thread pool configurable and how to transfer context from the main thread to the executing thread.

@peholmst
Copy link
Owner Author

And if you are interested to get your hands dirty with this, please go ahead. :-)

@peholmst peholmst modified the milestone: 0.0.4 Dec 5, 2014
@peholmst peholmst added this to the 0.0.9.RELEASE milestone Feb 3, 2015
@peholmst peholmst modified the milestones: 0.0.7.RELEASE, 0.0.9.RELEASE Feb 25, 2015
@peholmst peholmst removed this from the 0.0.8.RELEASE milestone Jun 17, 2015
@cyberoblivion
Copy link

I am interested in integrating the Reactor project as well. Has there been any efforts since last year on this?

@peholmst
Copy link
Owner Author

None. Feel free to get your hands dirty if you're interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants