bennidi / mbassador

Powerful event-bus optimized for high throughput in multi-threaded applications. Features: Sync and Async event publication, weak/strong references, event filtering, annotation driven
MIT License
955 stars 146 forks source link

Made it possible to extend MessagePublication class #163

Closed kolybelkin closed 2 years ago

bennidi commented 4 years ago

What is the intent of this modification?

kolybelkin commented 4 years ago

Because it is not possible to extend the class because of private inner enum. When you create child class you cannot override constructor, what is mandatory for extending it

bennidi commented 4 years ago

Interesting. What is the reason for extending MessagePulication? I am curious.

kolybelkin commented 4 years ago

I want to reduce garbage by using pool for event objects. The reason to override it is to add logic for returning the events back into the pool after processing them in all subscribers.

kolybelkin commented 4 years ago

Hi @bennidi, will it be merged/released?