question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EventBus identifier can't be set for constructor with SubscriberExceptionHandler

See original GitHub issue

If 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?

http://google.github.io/guava/releases/19.0/api/docs/com/google/common/eventbus/EventBus.html#EventBus(com.google.common.eventbus.SubscriberExceptionHandler)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aschattencommented, Mar 18, 2017

@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.

0reactions
cpovirkcommented, Oct 2, 2019

Realistically, we’re unlikely to add functionality to EventBus at this point.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found