Object/Trait

monix.reactive

Observer

Related Docs: trait Observer | package reactive

Permalink

object Observer extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observer
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class Extensions[T] extends AnyVal

    Permalink

    Extension methods for Observer.

  2. trait Sync[-T] extends Observer[T]

    Permalink

    An Observer.Sync is an Observer that signals demand to upstream synchronously (i.e.

    An Observer.Sync is an Observer that signals demand to upstream synchronously (i.e. the upstream observable doesn't need to wait on a Future in order to decide whether to send the next event or not).

    Can be used for optimizations.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def dump[A](prefix: String, out: PrintStream = System.out): Sync[A]

    Permalink

    Builds an Observer that just logs incoming events.

  7. def empty[A](implicit r: UncaughtExceptionReporter): Sync[A]

    Permalink

    Helper for building an empty observer that doesn't do anything, besides logging errors in case they happen.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def feed[T](target: Observer[T], subscription: BooleanCancelable, iterator: Iterator[T])(implicit s: Scheduler): Future[Ack]

    Permalink

    Feeds the Observer instance with elements from the given Iterator, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    Feeds the Observer instance with elements from the given Iterator, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    target

    is the observer that will get the events

    subscription

    is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped

    iterator

    is the collection of items to push downstream

  11. def feed[T](target: Observer[T], iterator: Iterator[T])(implicit s: Scheduler): Future[Ack]

    Permalink

    Feeds the Observer instance with elements from the given Iterator, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    Feeds the Observer instance with elements from the given Iterator, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    target

    is the observer that will get the events

    iterator

    is the collection of items to push downstream

  12. def feed[T](target: Observer[T], subscription: BooleanCancelable, iterable: Iterable[T])(implicit s: Scheduler): Future[Ack]

    Permalink

    Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    target

    is the observer that will get the events

    subscription

    is a BooleanCancelable that will be queried for its cancellation status, but only on asynchronous boundaries, and when it is seen as being isCanceled, streaming is stopped

    iterable

    is the collection of items to push downstream

  13. def feed[T](target: Observer[T], iterable: Iterable[T])(implicit s: Scheduler): Future[Ack]

    Permalink

    Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    Feeds the Observer instance with elements from the given collection, respecting the contract and returning a Future[Ack] with the last acknowledgement given after the last emitted element.

    target

    is the observer that will get the events

    iterable

    is the collection of items to push downstream

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromReactiveSubscriber[T](subscriber: Subscriber[T], subscription: Cancelable)(implicit s: Scheduler): Observer[T]

    Permalink

    Given an org.reactivestreams.Subscriber as defined by the Reactive Streams specification, it builds an Observer instance compliant with the Monix Rx implementation.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toReactiveSubscriber[T](observer: Observer[T], bufferSize: Int)(implicit s: Scheduler): Subscriber[T]

    Permalink

    Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

    Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

    bufferSize

    a strictly positive number, representing the size of the buffer used and the number of elements requested on each cycle when communicating demand, compliant with the reactive streams specification

  24. def toReactiveSubscriber[T](observer: Observer[T])(implicit s: Scheduler): Subscriber[T]

    Permalink

    Transforms the source Observer into a org.reactivestreams.Subscriber instance as defined by the Reactive Streams specification.

  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped