Packages

implicit class BoxedSubscriber[T] extends Observer[T]

Linear Supertypes
Observer[T], Subscriber[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BoxedSubscriber
  2. Observer
  3. Subscriber
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BoxedSubscriber(sub: => Subscriber[_ >: T])

Value Members

  1. def onComplete(): Unit

    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.

    Definition Classes
    BoxedSubscriberObserver → Subscriber
  2. def onError(e: Throwable): Unit

    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.

    e

    the exception encountered by the Observable

    Definition Classes
    BoxedSubscriberObserver → Subscriber
  3. def onNext(result: T): Unit

    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.

    result

    the item emitted by the Observable

    Definition Classes
    BoxedSubscriberObserver → Subscriber
  4. def onSubscribe(subscription: Subscription): Unit

    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

    Subscription that allows requesting data via Subscription.request

    Definition Classes
    BoxedSubscriberObserver
  5. def onSubscribe(subscription: reactivestreams.Subscription): Unit

    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.

    subscription

    the Java subscription

    Definition Classes
    Observer → Subscriber
    Note

    Users should not have to implement this method but rather use the Scala Subscription.

  6. val subscriber: Subscriber[_ >: T]