monifu.reactive.subjects

ReplaySubject

final class ReplaySubject[T] extends Subject[T, T]

ReplaySubject emits to any observer all of the items that were emitted by the source, regardless of when the observer subscribes.

Self Type
ReplaySubject[T]
Linear Supertypes
Subject[T, T], Observer[T], Observable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReplaySubject
  2. Subject
  3. Observer
  4. Observable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ++[U >: T](other: ⇒ Observable[U]): Subject[T, U]

    Concatenates the source Observable with the other Observable, as specified.

    Concatenates the source Observable with the other Observable, as specified.

    Definition Classes
    SubjectObservable
  5. final def +:[U >: T](elem: U): Subject[T, U]

    Creates a new Observable that emits the given element and then it also emits the events of the source (prepend operation).

    Creates a new Observable that emits the given element and then it also emits the events of the source (prepend operation).

    Definition Classes
    SubjectObservable
  6. final def :+[U >: T](elem: U): Subject[T, U]

    Creates a new Observable that emits the events of the source and then it also emits the given element (appended to the stream).

    Creates a new Observable that emits the events of the source and then it also emits the given element (appended to the stream).

    Definition Classes
    SubjectObservable
  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. def asFuture: Future[Option[T]]

    Returns the first generated result as a Future and then cancels the subscription.

    Returns the first generated result as a Future and then cancels the subscription.

    Definition Classes
    Observable
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. final def async(policy: BufferPolicy): Subject[T, T]

    Forces a buffered asynchronous boundary.

    Forces a buffered asynchronous boundary.

    Internally it wraps the observer implementation given to subscribeFn into a BufferedObserver.

    Normally Monifu's implementation guarantees that events are not emitted concurrently, and that the publisher MUST NOT emit the next event without acknowledgement from the consumer that it may proceed, however for badly behaved publishers, this wrapper provides the guarantee that the downstream Observer given in subscribe will not receive concurrent events.

    Compared with concurrent / ConcurrentObserver, the acknowledgement given by BufferedObserver can be synchronous (i.e. the Future[Ack] is already completed), so the publisher can send the next event without waiting for the consumer to receive and process the previous event (i.e. the data source will receive the Continue acknowledgement once the event has been buffered, not when it has been received by its destination).

    WARNING: if the buffer created by this operator is unbounded, it can blow up the process if the data source is pushing events faster than what the observer can consume, as it introduces an asynchronous boundary that eliminates the back-pressure requirements of the data source. Unbounded is the default policy, see BufferPolicy for options.

    Definition Classes
    SubjectObservable
  12. final def behavior[U >: T](initialValue: U): ConnectableSubject[T, U]

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a BehaviorSubject.

    Definition Classes
    SubjectObservable
  13. def buffer(timespan: FiniteDuration): Observable[Seq[T]]

    Periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time.

    Periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time.

    This version of buffer emits a new bundle of items periodically, every timespan amount of time, containing all items emitted by the source Observable since the previous bundle emission.

    timespan

    the interval of time at which it should emit the buffered bundle

    Definition Classes
    Observable
  14. def buffer(count: Int): Observable[Seq[T]]

    Periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time.

    Periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time.

    count

    the bundle size

    Definition Classes
    Observable
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def complete: Subject[T, Nothing]

    Returns an Observable that doesn't emit anything, but that completes when the source Observable completes.

    Returns an Observable that doesn't emit anything, but that completes when the source Observable completes.

    Definition Classes
    SubjectObservable
  17. final def concat[U](implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Concatenates the sequence of Observables emitted by the source into one Observable, without any transformation.

    Concatenates the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    The difference between concat and merge is that concat cares about ordering of emitted items (e.g. all items emitted by the first observable in the sequence will come before the elements emitted by the second observable), whereas merge doesn't care about that (elements get emitted as they come). Because of back-pressure applied to observables, concat is safe to use in all contexts, whereas merge requires buffering.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  18. def concatMap[U](f: (T) ⇒ Observable[U]): Subject[T, U]

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then concatenating those resulting Observables and emitting the results of this concatenation.

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then concatenating those resulting Observables and emitting the results of this concatenation.

    f

    a function that, when applied to an item emitted by the source Observable, returns an Observable

    returns

    an Observable that emits the result of applying the transformation function to each item emitted by the source Observable and concatenating the results of the Observables obtained from this transformation.

    Definition Classes
    SubjectObservable
  19. final def concurrent: Subject[T, T]

    Wraps the observer implementation given to subscribeFn into a ConcurrentObserver.

    Wraps the observer implementation given to subscribeFn into a ConcurrentObserver.

    Normally Monifu's implementation guarantees that events are not emitted concurrently, and that the publisher MUST NOT emit the next event without acknowledgement from the consumer that it may proceed, however for badly behaved publishers, this wrapper provides the guarantee that the downstream Observer given in subscribe will not receive concurrent events, also making it thread-safe.

    WARNING: the buffer created by this operator is unbounded and can blow up the process if the data source is pushing events without following the back-pressure requirements and faster than what the destination consumer can consume. On the other hand, if the data-source does follow the back-pressure contract, than this is safe. For data sources that cannot respect the back-pressure requirements and are problematic, see async and BufferPolicy for options.

    Definition Classes
    SubjectObservable
  20. final def distinct: Subject[T, T]

    Suppress the duplicate elements emitted by the source Observable.

    Suppress the duplicate elements emitted by the source Observable.

    WARNING: this requires unbounded buffering.

    Definition Classes
    SubjectObservable
  21. final def distinct[U](fn: (T) ⇒ U): Subject[T, T]

    Given a function that returns a key for each element emitted by the source Observable, suppress duplicates items.

    Given a function that returns a key for each element emitted by the source Observable, suppress duplicates items.

    WARNING: this requires unbounded buffering.

    Definition Classes
    SubjectObservable
  22. final def distinctUntilChanged: Subject[T, T]

    Suppress duplicate consecutive items emitted by the source Observable

    Suppress duplicate consecutive items emitted by the source Observable

    Definition Classes
    SubjectObservable
  23. final def distinctUntilChanged[U](fn: (T) ⇒ U): Subject[T, T]

    Suppress duplicate consecutive items emitted by the source Observable

    Suppress duplicate consecutive items emitted by the source Observable

    Definition Classes
    SubjectObservable
  24. final def doOnComplete(cb: ⇒ Unit): Subject[T, T]

    Executes the given callback when the stream has ended (after the event was already emitted).

    Executes the given callback when the stream has ended (after the event was already emitted).

    NOTE: protect the callback such that it doesn't throw exceptions, because it gets executed after onComplete() happens and by definition the error cannot be streamed with onError().

    cb

    the callback to execute when the subscription is canceled

    Definition Classes
    SubjectObservable
  25. final def doOnStart(cb: (T) ⇒ Unit): Subject[T, T]

    Executes the given callback only for the first element generated by the source Observable, useful for doing a piece of computation only when the stream started.

    Executes the given callback only for the first element generated by the source Observable, useful for doing a piece of computation only when the stream started.

    returns

    a new Observable that executes the specified callback only for the first element

    Definition Classes
    SubjectObservable
  26. def doWork(cb: (T) ⇒ Unit): Subject[T, T]

    Executes the given callback for each element generated by the source Observable, useful for doing side-effects.

    Executes the given callback for each element generated by the source Observable, useful for doing side-effects.

    returns

    a new Observable that executes the specified callback for each element

    Definition Classes
    SubjectObservable
  27. final def drop(n: Int): Subject[T, T]

    Drops the first n elements (from the start).

    Drops the first n elements (from the start).

    n

    the number of elements to drop

    returns

    a new Observable that drops the first n elements emitted by the source

    Definition Classes
    SubjectObservable
  28. def drop(timespan: FiniteDuration): Observable[T]

    Creates a new Observable that drops the events of the source, only for the specified timestamp window.

    Creates a new Observable that drops the events of the source, only for the specified timestamp window.

    timespan

    the window of time during which the new Observable is must drop the events emitted by the source

    Definition Classes
    Observable
  29. final def dropWhile(p: (T) ⇒ Boolean): Subject[T, T]

    Drops the longest prefix of elements that satisfy the given predicate and returns a new Observable that emits the rest.

    Drops the longest prefix of elements that satisfy the given predicate and returns a new Observable that emits the rest.

    Definition Classes
    SubjectObservable
  30. final def dump(prefix: String): Subject[T, T]

    Utility that can be used for debugging purposes.

    Utility that can be used for debugging purposes.

    Definition Classes
    SubjectObservable
  31. final def endWith[U >: T](elems: U*): Subject[T, U]

    Creates a new Observable that emits the events of the source and then it also emits the given elements (appended to the stream).

    Creates a new Observable that emits the events of the source and then it also emits the given elements (appended to the stream).

    Definition Classes
    SubjectObservable
  32. final def endWithError(error: Throwable): Subject[T, T]

    Emits the given exception instead of onComplete.

    Emits the given exception instead of onComplete.

    error

    the exception to emit onComplete

    returns

    a new Observable that emits an exception onComplete

    Definition Classes
    SubjectObservable
  33. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  35. final def error: Subject[T, Throwable]

    Returns an Observable that emits a single Throwable, in case an error was thrown by the source Observable, otherwise it isn't going to emit anything.

    Returns an Observable that emits a single Throwable, in case an error was thrown by the source Observable, otherwise it isn't going to emit anything.

    Definition Classes
    SubjectObservable
  36. final def exists(p: (T) ⇒ Boolean): Subject[T, Boolean]

    Returns an Observable which emits a single value, either true, in case the given predicate holds for at least one item, or false otherwise.

    Returns an Observable which emits a single value, either true, in case the given predicate holds for at least one item, or false otherwise.

    p

    a function that evaluates the items emitted by the source Observable, returning true if they pass the filter

    returns

    an Observable that emits only true or false in case the given predicate holds or not for at least one item

    Definition Classes
    SubjectObservable
  37. final def filter(p: (T) ⇒ Boolean): Subject[T, T]

    Returns an Observable which only emits those items for which the given predicate holds.

    Returns an Observable which only emits those items for which the given predicate holds.

    p

    a function that evaluates the items emitted by the source Observable, returning true if they pass the filter

    returns

    an Observable that emits only those items in the original Observable for which the filter evaluates as true

    Definition Classes
    SubjectObservable
  38. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. final def find(p: (T) ⇒ Boolean): Subject[T, T]

    Returns an Observable which only emits the first item for which the predicate holds.

    Returns an Observable which only emits the first item for which the predicate holds.

    p

    a function that evaluates the items emitted by the source Observable, returning true if they pass the filter

    returns

    an Observable that emits only the first item in the original Observable for which the filter evaluates as true

    Definition Classes
    SubjectObservable
  40. final def firstOrElse[U >: T](default: ⇒ U): Subject[T, U]

    Emits the first element emitted by the source, or otherwise if the source is completed without emitting anything, then the default is emitted.

    Emits the first element emitted by the source, or otherwise if the source is completed without emitting anything, then the default is emitted.

    Alias for headOrElse.

    Definition Classes
    SubjectObservable
  41. def flatMap[U](f: (T) ⇒ Observable[U]): Subject[T, U]

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then concatenating those resulting Observables and emitting the results of this concatenation.

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then concatenating those resulting Observables and emitting the results of this concatenation.

    f

    a function that, when applied to an item emitted by the source Observable, returns an Observable

    returns

    an Observable that emits the result of applying the transformation function to each item emitted by the source Observable and concatenating the results of the Observables obtained from this transformation.

    Definition Classes
    SubjectObservable
  42. final def flatScan[R](initial: R)(op: (R, T) ⇒ Observable[R]): Subject[T, R]

    Given a start value (a seed) and a function taking the current state (starting with the seed) and the currently emitted item and returning a new state value as a Future, it returns a new Observable that applies the given function to all emitted items, emitting the produced state along the way.

    Given a start value (a seed) and a function taking the current state (starting with the seed) and the currently emitted item and returning a new state value as a Future, it returns a new Observable that applies the given function to all emitted items, emitting the produced state along the way.

    This operator is to scan what flatMap is to map.

    Example:

    // dumb long running function, returning a Future result
    def sumUp(x: Long, y: Int) = Future(x + y)
    
    Observable.range(0, 10).flatScan(0L)(sumUp).dump("FlatScan").subscribe()
    //=> 0: FlatScan-->0
    //=> 1: FlatScan-->1
    //=> 2: FlatScan-->3
    //=> 3: FlatScan-->6
    //=> 4: FlatScan-->10
    //=> 5: FlatScan-->15
    //=> 6: FlatScan-->21
    //=> 7: FlatScan-->28
    //=> 8: FlatScan-->36
    //=> 9: FlatScan-->45
    //=> 10: FlatScan completed

    NOTE that it does back-pressure and the state produced by this function is emitted in order of the original input. This is the equivalent of concatMap and NOT mergeMap (a mergeScan wouldn't make sense anyway).

    Definition Classes
    SubjectObservable
  43. final def flatten[U](implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Flattens the sequence of Observables emitted by the source into one Observable, without any transformation.

    Flattens the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    This operation is only available if this is of type Observable[Observable[B]] for some B, otherwise you'll get a compilation error.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  44. final def foldLeft[R](initial: R)(op: (R, T) ⇒ R): Subject[T, R]

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits only one item before onComplete.

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits only one item before onComplete.

    Definition Classes
    SubjectObservable
  45. final def forAll(p: (T) ⇒ Boolean): Subject[T, Boolean]

    Returns an Observable that emits a single boolean, either true, in case the given predicate holds for all the items emitted by the source, or false in case at least one item is not verifying the given predicate.

    Returns an Observable that emits a single boolean, either true, in case the given predicate holds for all the items emitted by the source, or false in case at least one item is not verifying the given predicate.

    p

    a function that evaluates the items emitted by the source Observable, returning true if they pass the filter

    returns

    an Observable that emits only true or false in case the given predicate holds or not for all the items

    Definition Classes
    SubjectObservable
  46. def foreach(cb: (T) ⇒ Unit): Unit

    Subscribes to the source Observable and foreach element emitted by the source it executes the given callback.

    Subscribes to the source Observable and foreach element emitted by the source it executes the given callback.

    Definition Classes
    Observable
  47. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  49. final def head: Subject[T, T]

    Only emits the first element emitted by the source observable, after which it's completed immediately.

    Only emits the first element emitted by the source observable, after which it's completed immediately.

    Definition Classes
    SubjectObservable
  50. final def headOrElse[B >: T](default: ⇒ B): Subject[T, B]

    Emits the first element emitted by the source, or otherwise if the source is completed without emitting anything, then the default is emitted.

    Emits the first element emitted by the source, or otherwise if the source is completed without emitting anything, then the default is emitted.

    Definition Classes
    SubjectObservable
  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. final def last: Subject[T, T]

    Only emits the last element emitted by the source observable, after which it's completed immediately.

    Only emits the last element emitted by the source observable, after which it's completed immediately.

    Definition Classes
    SubjectObservable
  53. final def lift[U](f: (Observable[T]) ⇒ Observable[U]): Subject[T, U]

    Given a function that transforms an Observable[T] into an Observable[U], it transforms the source observable into an Observable[U].

    Given a function that transforms an Observable[T] into an Observable[U], it transforms the source observable into an Observable[U].

    Definition Classes
    SubjectObservable
  54. final def map[U](f: (T) ⇒ U): Subject[T, U]

    Returns an Observable that applies the given function to each item emitted by an Observable and emits the result.

    Returns an Observable that applies the given function to each item emitted by an Observable and emits the result.

    f

    a function to apply to each item emitted by the Observable

    returns

    an Observable that emits the items from the source Observable, transformed by the given function

    Definition Classes
    SubjectObservable
  55. final def materialize: Subject[T, Notification[T]]

    Converts the source Observable that emits T into an Observable that emits Notification[T].

    Converts the source Observable that emits T into an Observable that emits Notification[T].

    NOTE: onComplete is still emitted after an onNext(OnComplete) notification however an onError(ex) notification is emitted as an onNext(OnError(ex)) followed by an onComplete.

    Definition Classes
    SubjectObservable
  56. final def max[U >: T](implicit ev: Ordering[U]): Subject[T, U]

    Takes the elements of the source Observable and emits the maximum value, after the source has completed.

    Takes the elements of the source Observable and emits the maximum value, after the source has completed.

    Definition Classes
    SubjectObservable
  57. final def maxBy[U](f: (T) ⇒ U)(implicit ev: Ordering[U]): Subject[T, T]

    Takes the elements of the source Observable and emits the element that has the maximum key value, where the key is generated by the given function f.

    Takes the elements of the source Observable and emits the element that has the maximum key value, where the key is generated by the given function f.

    Definition Classes
    SubjectObservable
  58. final def merge[U](parallelism: Int, bufferPolicy: BufferPolicy)(implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    The difference between concat and merge is that concat cares about ordering of emitted items (e.g. all items emitted by the first observable in the sequence will come before the elements emitted by the second observable), whereas merge doesn't care about that (elements get emitted as they come). Because of back-pressure applied to observables, concat is safe to use in all contexts, whereas merge requires buffering.

    parallelism

    a number indicating the maximum number of observables subscribed in parallel; if negative or zero, then no upper bound is applied

    bufferPolicy

    the policy used for buffering, useful if you want to limit the buffer size and apply back-pressure, trigger and error, etc... see the available buffer policies.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  59. final def merge[U](bufferPolicy: BufferPolicy)(implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    The difference between concat and merge is that concat cares about ordering of emitted items (e.g. all items emitted by the first observable in the sequence will come before the elements emitted by the second observable), whereas merge doesn't care about that (elements get emitted as they come). Because of back-pressure applied to observables, concat is safe to use in all contexts, whereas merge requires buffering.

    bufferPolicy

    the policy used for buffering, useful if you want to limit the buffer size and apply back-pressure, trigger and error, etc... see the available buffer policies.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  60. final def merge[U](implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    The difference between concat and merge is that concat cares about ordering of emitted items (e.g. all items emitted by the first observable in the sequence will come before the elements emitted by the second observable), whereas merge doesn't care about that (elements get emitted as they come). Because of back-pressure applied to observables, concat is safe to use in all contexts, whereas merge requires buffering.

    This variant of the merge call (no parameters) does apply back-pressured buffering and also applies an upper-bound on the number of observables subscribed, so it is fairly safe to use.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  61. final def mergeMap[U](f: (T) ⇒ Observable[U]): Subject[T, U]

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then merging those resulting Observables and emitting the results of this merger.

    Creates a new Observable by applying a function that you supply to each item emitted by the source Observable, where that function returns an Observable, and then merging those resulting Observables and emitting the results of this merger.

    f

    a function that, when applied to an item emitted by the source Observable, returns an Observable

    returns

    an Observable that emits the result of applying the transformation function to each item emitted by the source Observable and merging the results of the Observables obtained from this transformation.

    Definition Classes
    SubjectObservable
  62. final def min[U >: T](implicit ev: Ordering[U]): Subject[T, T]

    Takes the elements of the source Observable and emits the minimum value, after the source has completed.

    Takes the elements of the source Observable and emits the minimum value, after the source has completed.

    Definition Classes
    SubjectObservable
  63. final def minBy[U](f: (T) ⇒ U)(implicit ev: Ordering[U]): Subject[T, T]

    Takes the elements of the source Observable and emits the element that has the minimum key value, where the key is generated by the given function f.

    Takes the elements of the source Observable and emits the element that has the minimum key value, where the key is generated by the given function f.

    Definition Classes
    SubjectObservable
  64. final def multicast[R](subject: Subject[T, R]): ConnectableSubject[T, R]

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers).

    Definition Classes
    SubjectObservable
  65. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. final def observeOn(s: Scheduler, bufferPolicy: BufferPolicy = BackPressured(1024)): Subject[T, T]

    Returns a new Observable that uses the specified ExecutionContext for listening to the emitted items.

    Returns a new Observable that uses the specified ExecutionContext for listening to the emitted items.

    s

    the execution context on top of which the generated onNext / onComplete / onError events will run

    bufferPolicy

    specifies the buffering policy used by the created asynchronous boundary

    Definition Classes
    SubjectObservable
  69. def onComplete(): Unit

    Definition Classes
    ReplaySubjectObserver
    Annotations
    @tailrec()
  70. def onError(ex: Throwable): Unit

    Definition Classes
    ReplaySubjectObserver
    Annotations
    @tailrec()
  71. def onNext(elem: T): Future[Ack]

    Definition Classes
    ReplaySubjectObserver
    Annotations
    @tailrec()
  72. final def publish(): ConnectableSubject[T, T]

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a PublishSubject.

    Definition Classes
    SubjectObservable
  73. final def reduce[U >: T](op: (U, U) ⇒ U): Subject[T, U]

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits only one item before onComplete.

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits only one item before onComplete.

    Definition Classes
    SubjectObservable
  74. final def repeat: Subject[T, T]

    Repeats the items emitted by this Observable continuously.

    Repeats the items emitted by this Observable continuously. It caches the generated items until onComplete and repeats them ad infinitum. On error it terminates.

    Definition Classes
    SubjectObservable
  75. final def replay(): ConnectableSubject[T, T]

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.

    Converts this observable into a multicast observable, useful for turning a cold observable into a hot one (i.e. whose source is shared by all observers). The underlying subject used is a ReplaySubject.

    Definition Classes
    SubjectObservable
  76. final def safe: Subject[T, T]

    Wraps the observer implementation given to subscribeFn into a SafeObserver.

    Wraps the observer implementation given to subscribeFn into a SafeObserver. Normally wrapping in a SafeObserver happens at the edges of the monad (in the user-facing subscribe() implementation) or in Observable subscribe implementations, so this wrapping is useful.

    Definition Classes
    SubjectObservable
  77. final def scan[R](initial: R)(op: (R, T) ⇒ R): Subject[T, R]

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits on each step the result of the applied function.

    Applies a binary operator to a start value and all elements of this Observable, going left to right and returns a new Observable that emits on each step the result of the applied function.

    Similar to foldLeft, but emits the state on each step. Useful for modeling finite state machines.

    Definition Classes
    SubjectObservable
  78. implicit val scheduler: Scheduler

    Implicit scheduler required for asynchronous boundaries.

    Implicit scheduler required for asynchronous boundaries.

    Definition Classes
    ReplaySubjectObservable
  79. final def startWith[U >: T](elems: U*): Subject[T, U]

    Creates a new Observable that emits the given elements and then it also emits the events of the source (prepend operation).

    Creates a new Observable that emits the given elements and then it also emits the events of the source (prepend operation).

    Definition Classes
    SubjectObservable
  80. final def subscribe(nextFn: (T) ⇒ Future[Ack]): Unit

    Creates the subscription and starts the stream.

    Creates the subscription and starts the stream.

    Definition Classes
    Observable
  81. final def subscribe(): Unit

    Creates the subscription and starts the stream.

    Creates the subscription and starts the stream.

    Definition Classes
    Observable
  82. final def subscribe(nextFn: (T) ⇒ Future[Ack], errorFn: (Throwable) ⇒ Unit): Unit

    Creates the subscription and starts the stream.

    Creates the subscription and starts the stream.

    Definition Classes
    Observable
  83. final def subscribe(nextFn: (T) ⇒ Future[Ack], errorFn: (Throwable) ⇒ Unit, completedFn: () ⇒ Unit): Unit

    Creates the subscription and starts the stream.

    Creates the subscription and starts the stream.

    Definition Classes
    Observable
  84. final def subscribe(observer: Observer[T]): Unit

    Creates the subscription and that starts the stream.

    Creates the subscription and that starts the stream.

    observer

    is an Observer on which onNext, onComplete and onError happens, according to the Monifu Rx contract.

    Definition Classes
    Observable
  85. def subscribeFn(observer: Observer[T]): Unit

    Characteristic function for an Observable instance, that creates the subscription and that eventually starts the streaming of events to the given Observer, being meant to be overridden in custom combinators or in classes implementing Observable.

    Characteristic function for an Observable instance, that creates the subscription and that eventually starts the streaming of events to the given Observer, being meant to be overridden in custom combinators or in classes implementing Observable.

    observer

    is an Observer on which onNext, onComplete and onError happens, according to the Monifu Rx contract.

    Definition Classes
    ReplaySubjectObservable
  86. final def subscribeOn(s: Scheduler): Subject[T, T]

    Returns a new Observable that uses the specified ExecutionContext for initiating the subscription.

    Returns a new Observable that uses the specified ExecutionContext for initiating the subscription.

    Definition Classes
    SubjectObservable
  87. final def sum[U >: T](implicit ev: Numeric[U]): Subject[T, U]

    Given a source that emits numeric values, the sum operator sums up all values and at onComplete it emits the total.

    Given a source that emits numeric values, the sum operator sums up all values and at onComplete it emits the total.

    Definition Classes
    SubjectObservable
  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  89. final def tail: Subject[T, T]

    Drops the first element of the source observable, emitting the rest.

    Drops the first element of the source observable, emitting the rest.

    Definition Classes
    SubjectObservable
  90. def take(n: Int): Subject[T, T]

    Selects the first n elements (from the start).

    Selects the first n elements (from the start).

    n

    the number of elements to take

    returns

    a new Observable that emits only the first n elements from the source

    Definition Classes
    SubjectObservable
  91. def take(timespan: FiniteDuration): Observable[T]

    Creates a new Observable that emits the events of the source, only for the specified timestamp, after which it completes.

    Creates a new Observable that emits the events of the source, only for the specified timestamp, after which it completes.

    timespan

    the window of time during which the new Observable is allowed to emit the events of the source

    Definition Classes
    Observable
  92. final def takeRight(n: Int): Subject[T, T]

    Creates a new Observable that only emits the last n elements emitted by the source.

    Creates a new Observable that only emits the last n elements emitted by the source.

    Definition Classes
    SubjectObservable
  93. final def takeWhile(isRefTrue: Atomic[Boolean]): Subject[T, T]

    Takes longest prefix of elements that satisfy the given predicate and returns a new Observable that emits those elements.

    Takes longest prefix of elements that satisfy the given predicate and returns a new Observable that emits those elements.

    Definition Classes
    SubjectObservable
  94. final def takeWhile(p: (T) ⇒ Boolean): Subject[T, T]

    Takes longest prefix of elements that satisfy the given predicate and returns a new Observable that emits those elements.

    Takes longest prefix of elements that satisfy the given predicate and returns a new Observable that emits those elements.

    Definition Classes
    SubjectObservable
  95. def toString(): String

    Definition Classes
    AnyRef → Any
  96. final def unsafeMerge[U](implicit ev: <:<[T, Observable[U]]): Subject[T, U]

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    Merges the sequence of Observables emitted by the source into one Observable, without any transformation.

    You can combine the items emitted by multiple Observables so that they act like a single Observable by using this method.

    The difference between concat and merge is that concat cares about ordering of emitted items (e.g. all items emitted by the first observable in the sequence will come before the elements emitted by the second observable), whereas merge doesn't care about that (elements get emitted as they come). Because of back-pressure applied to observables, concat is safe to use in all contexts, whereas merge requires buffering.

    This unsafe variant of the merge call applies absolutely no back-pressure or upper bounds on subscribed observables, so it is unsafe to use. Only use it when you know what you're doing.

    returns

    an Observable that emits items that are the result of flattening the items emitted by the Observables emitted by this

    Definition Classes
    SubjectObservable
  97. final def unsafeSubscribe(observer: Observer[T]): Unit

    Creates the subscription that eventually starts the stream.

    Creates the subscription that eventually starts the stream.

    This function is "unsafe" to call because it does protect the calls to the given Observer implementation in regards to unexpected exceptions that violate the contract, therefore the given instance must respect its contract and not throw any exceptions when the observable calls onNext, onComplete and onError. if it does, then the behavior is undefined.

    observer

    is an Observer that respects Monifu Rx contract.

    Definition Classes
    Observable
  98. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def zip[U](other: Observable[U]): Subject[T, (T, U)]

    Creates a new Observable from this Observable and another given Observable, by emitting elements combined in pairs.

    Creates a new Observable from this Observable and another given Observable, by emitting elements combined in pairs. If one of the Observable emits fewer events than the other, then the rest of the unpaired events are ignored.

    Definition Classes
    SubjectObservable

Inherited from Subject[T, T]

Inherited from Observer[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped