Support for one-to-one singular communication
See original GitHub issueI don’t know if this makes sense to you, but it might be useful in some cases (avoids sending events from one to another). I don’t know the best way to run this on scenarios with more than one class listening to SomeEvent
.
// ... some class listening to SomeEvent
public int onEvent(SomeEvent event) {
if (event.message.equals("something")) {
return 1;
}
return 0;
}
// ... some class that triggers a SomeEvent
public void whichValue() {
EventBus.getDefault()
.post(new SomeEvent("something"), new OnResult() {
public void onResult(int result) {
// do something with result
}
});
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
One-To-One and Many-to-Many Database Relationships
In this diagram were many one-to-one relationships. ... The key to building a successful ERD and Honeycode system is communication.
Read more >On the configuration of the singular fibers of jet schemes of ...
For a surface with a rational double point, Mourtada gave a one-to-one correspondence between the irreducible components of the singular ...
Read more >Augmentative and Alternative Communication - ASHA
AAC uses a variety of techniques and tools to help the individual express thoughts, wants and needs, feelings, and ideas, including the following:...
Read more >Best 15 Singular Alternatives - 2022 | Software Advice
Find the top Singular alternatives in 2022. ... solution designed to help businesses manage and streamline communication with customers via messaging.
Read more >Friendemic: Home
... Friendemic is a singular software solution that provides one-to-one and one-to-all communication capabilities for dealerships. We're all-encompassing, ...
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
Could be an architecture smell. If 1-to-1, shouldn’t the caller know whom to call?
Well, I think if solved 1-1 by 1-m, it may cause siginificantly performance loss, while two many subscribers registered. For example, how about the posted object is a base object like SuccessMessageEvent or ErrorMesssageEvent defined in network framework? Am I right?