EventBus identifier can't be set for constructor with SubscriberExceptionHandler
See original GitHub issueIf you are using the EventBus constructor that that takes the SubscriberExceptionHandler
you can’t set the identifier.
Should an additional constructor be added so you can set the identifier?
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Google Guava EventBus and Exceptions in Event Handlers
After creating a class implementing the SubscriberExceptionHandler interface, you can pass its instance to the EventBus's constructor:
Read more >EventBus (Guava: Google Core Libraries for Java 31.0-jre API)
Creates a new EventBus with the given SubscriberExceptionHandler . EventBus(String identifier). Creates a new EventBus with the given identifier .
Read more >Registering Event Bus in Constructor - Google Groups
If you register an object on the event bus within the constructor for that object can another thread call subscribers on that object...
Read more >com.google.common.eventbus.EventBus.<init> java ... - Tabnine
Handles the given exception thrown by a subscriber with the given context. identifier. Returns the identifier for this event bus. getHandlersForEventType.
Read more >Java Examples for com.google.common.eventbus.EventBus
public void run(FileImport fileImport) { EventBus bus = new EventBus(); ... getCause()); assertEquals("You cannot set both 'eventClass' and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cgdecker Is it being worked on by anyone? Do you have any specific design in mind? I would like to submit a PR for this.
Realistically, we’re unlikely to add functionality to EventBus at this point.