Closed GoogleCodeExporter closed 9 years ago
Seems related to issue 951.
Original comment by cgdec...@gmail.com
on 21 Mar 2013 at 2:59
Yes it seems issue 951 talks of the same functionality. However important for
me is not that the event delivery happens asynchronously, but that I know which
executor is delivering the event, this is needed to make sure that always the
same executor/thread accesses the listening object, something which can not be
guaranteed in the current AsyncEventBus.
Original comment by DeRijcke.Erik@gmail.com
on 21 Mar 2013 at 7:43
Would the ability to control what Executor is used to dispatch to a subscriber
using annotations on the subscriber method work for this? For example, rather
than specifying an Executor when you register an object, instead annotate each
method in the class with some annotation of your choice. Then, when you create
the EventBus you associate that annotation with a specific Executor. This gives
more fine-grained control over which methods are dispatched with which
Executors and saves you from having to deal with Executors when registering an
object, but does mean that you can't register different instances of the same
type to be handled by different Executors. I'd prefer keeping registration as
simple as possible.
Original comment by cgdecker@google.com
on 26 Jun 2014 at 10:36
Sounds lovely!
Original comment by DeRijcke.Erik@gmail.com
on 27 Jun 2014 at 7:28
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:12
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:18
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:08
Original issue reported on code.google.com by
DeRijcke.Erik@gmail.com
on 21 Mar 2013 at 9:57