* After an Observer calls an {@link Observable}'s {@link Observable#subscribe subscribe} method, the
* {@code Observable} calls the Observer's {@link #onNext} method to provide notifications. A well-behaved
* {@code Observable} will call an Observer's {@link #onCompleted} method exactly once or the Observer's
* {@link #onError} method exactly once.
*
* @see ReactiveX documentation: Observable
* @param
* The {@link Observable} will not call this method if it calls {@link #onError}. */ void onCompleted(); /** * Notifies the Observer that the {@link Observable} has experienced an error condition. *
* If the {@link Observable} calls this method, it will not thereafter call {@link #onNext} or * {@link #onCompleted}. * * @param e * the exception encountered by the Observable */ void onError(Throwable e); /** * Provides the Observer with a new item to observe. *
* The {@link Observable} may call this method 0 or more times. *
* The {@code Observable} will not call this method again after it calls either {@link #onCompleted} or * {@link #onError}. * * @param t * the item emitted by the Observable */ void onNext(T t); }