Class/Object

monifu.reactive.observers

SynchronousBufferedSubscriber

Related Docs: object SynchronousBufferedSubscriber | package observers

Permalink

final class SynchronousBufferedSubscriber[-T] extends BufferedSubscriber[T] with SynchronousSubscriber[T]

A highly optimized BufferedSubscriber implementation. It supports 2 buffer policies - unbounded or bounded and terminated with a BufferOverflowException.

To create an instance using an unbounded overflowStrategy:

// by default, the constructor for BufferedSubscriber is returning this unbounded variant
BufferedSubscriber(observer)

// or you can specify the Unbounded overflowStrategy explicitly
import monifu.reactive.OverflowStrategy.Unbounded
val buffered = BufferedSubscriber(observer, overflowStrategy = Unbounded)

To create a bounded buffered observable that triggers BufferOverflowException when over capacity:

import monifu.reactive.OverflowStrategy.OverflowTriggering
// triggers buffer overflow error after 10000 messages
val buffered = BufferedSubscriber(observer, overflowStrategy = OverflowTriggering(bufferSize = 10000))
Self Type
SynchronousBufferedSubscriber[T]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SynchronousBufferedSubscriber
  2. SynchronousSubscriber
  3. SynchronousObserver
  4. BufferedSubscriber
  5. Subscriber
  6. Observer
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def onComplete(): Unit

    Permalink
  16. def onError(ex: Throwable): Unit

    Permalink
  17. def onNext(elem: T): Ack

    Permalink

    Returns either a Continue or a Cancel, in response to an elem event being received.

    Returns either a Continue or a Cancel, in response to an elem event being received.

    Definition Classes
    SynchronousBufferedSubscriberSynchronousObserverObserver
  18. implicit val scheduler: Scheduler

    Permalink
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

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

Inherited from SynchronousSubscriber[T]

Inherited from SynchronousObserver[T]

Inherited from BufferedSubscriber[T]

Inherited from Subscriber[T]

Inherited from Observer[T]

Inherited from AnyRef

Inherited from Any

Ungrouped