
com.cookingfox.rxbus_eventbus.RxBusObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxbus-eventbus-java Show documentation
Show all versions of rxbus-eventbus-java Show documentation
A simple EventBus using RX Java
The newest version!
package com.cookingfox.rxbus_eventbus;
import rx.Observable;
/**
* Operations for observing streams.
*/
public interface RxBusObserver {
/**
* Returns a stream for all events that are emitted on this EventBus.
*/
Observable> observe();
/**
* Returns a stream for events of the provided class that are emitted on this EventBus.
*
* @param eventClass The type of event to observe.
* @param Indicates the type of event to observe.
*/
Observable observe(Class eventClass);
/**
* Alias for {@link #observe()}.
*
* @see #observe()
*/
Observable> on();
/**
* Alias for {@link #observe(Class)}.
*
* @see #observe(Class)
*/
Observable on(Class eventClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy