Skip to content

adiliqbl/RxBus

Repository files navigation

RxBus

Simple Relay RxBus with similar api to Event Bus
The Bus makes use of PublishRelay provided by RxRelay.

Thanks to

Event Bus
RxRelay

Usage

Register to all events in class

  1. Event class
class ConsumerEvent
  1. Observe to event types
RxBus.observe(ConsumerEvent.class)
     .subscribe(event -> {})

Event will be received on both sticky and non sticky events.

  1. Post events
RxBus.post(new MyEvent())
RxBus.postSticky(new MyEvent())

About

RxBus Relay using Jake Wharton's RxRelay

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages