Notifies the Subscriber that the Observable has finished sending push-based notifications.
Notifies the Subscriber that the Observable has finished sending push-based notifications.
The Observable will not call this method if it calls onError.
Notifies the Observer that the Observable has experienced an error condition.
Notifies the Observer that the Observable has experienced an error condition.
If the Observable calls this method, it will not thereafter call onNext or onComplete.
the exception encountered by the Observable
Provides the Observer with a new item to observe.
Provides the Observer with a new item to observe.
The Observer may call this method 0 or more times.
The Observable will not call this method again after it calls either onComplete or onError.
the item emitted by the Observable
Handles the automatic boxing of a Java subscription so it conforms to the interface.
Handles the automatic boxing of a Java subscription so it conforms to the interface.
the Java subscription
Users should not have to implement this method but rather use the Scala Subscription
.
Invoked on subscription to an Observable.
Invoked on subscription to an Observable.
No operation will happen until Subscription.request is invoked.
It is the responsibility of this Subscriber instance to call Subscription.request whenever more data is wanted.
Subscription that allows requesting data via Subscription.request
A Scala based wrapper of the
Observer
interface which provides a mechanism for receiving push-based notifications.Will receive a call to
Observer.onSubscribe(subscription: Subscription)
on subscription to the Observable.Default implementations of this trait are greedy and will call Subscription.request with
Long.MaxValue
so that all results are requested. Custom implementations of theonSubscribe
method can be used to control "back-pressure" and ensure that only demand that theObserver
is capable of handling is requested.After signaling demand:
- One or more invocations of Observer.onNext up to the maximum number defined by Subscription.request - Single invocation of Observer.onError or Observer.onComplete which signals a terminal state after which no further events will be sent.
The type of element signaled.