All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cookingfox.rxbus_eventbus.RxBusObserver Maven / Gradle / Ivy

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