monifu.rx.subjects

PublishSubject

final class PublishSubject[T] extends Subject[T]

Self Type
PublishSubject[T]
Linear Supertypes
Subject[T], Observer[T], Observable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PublishSubject
  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. def ++[U >: T](other: ⇒ Observable[U]): Observable[U]

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

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

    Definition Classes
    Observable
  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. 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
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def doOnCompleted(cb: ⇒ Unit): Observable[T]

    Executes the given callback when the stream has ended on onCompleted

    Executes the given callback when the stream has ended on onCompleted

    NOTE: protect the callback such that it doesn't throw exceptions, because it gets executed when cancel() happens and by definition the error cannot be streamed with onError() and so the behavior is left as undefined, possibly crashing the application or worse - leading to non-deterministic behavior.

    cb

    the callback to execute when the subscription is canceled

    Definition Classes
    Observable
  11. def doWork(cb: (T) ⇒ Unit): Observable[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
    Observable
  12. def drop(n: Long): Observable[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
    Observable
  13. def dropWhile(p: (T) ⇒ Boolean): Observable[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
    Observable
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def exists(p: (T) ⇒ Boolean): Observable[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
    Observable
  17. def filter(p: (T) ⇒ Boolean): Observable[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
    Observable
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def find(p: (T) ⇒ Boolean): Observable[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
    Observable
  20. def firstOrElse[U >: T](default: ⇒ U): Observable[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
    Observable
  21. def flatMap[U](f: (T) ⇒ Observable[U]): Observable[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
    Observable
  22. def flatten[U](implicit ev: <:<[T, Observable[U]]): Observable[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
    Observable
  23. def foldLeft[R](initial: R)(op: (R, T) ⇒ R): Observable[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 onCompleted.

    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 onCompleted.

    Definition Classes
    Observable
  24. def forAll(p: (T) ⇒ Boolean): Observable[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
    Observable
  25. def foreach(cb: (T) ⇒ Unit): Unit

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

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

    Definition Classes
    AnyRef → Any
  28. def head: Observable[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
    Observable
  29. def headOrElse[B >: T](default: ⇒ B): Observable[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
    Observable
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def map[U](f: (T) ⇒ U): Observable[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
    Observable
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  35. def observeOn(s: Scheduler): Observable[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.

    Definition Classes
    Observable
  36. def onCompleted(): Future[Done]

    Definition Classes
    PublishSubjectObserver
  37. def onError(ex: Throwable): Future[Done]

    Definition Classes
    PublishSubjectObserver
  38. def onNext(elem: T): Future[Ack]

    Definition Classes
    PublishSubjectObserver
  39. def scan[R](initial: R)(op: (R, T) ⇒ R): Observable[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
    Observable
  40. implicit val scheduler: Scheduler

    Implicit scheduler required for asynchronous boundaries.

    Implicit scheduler required for asynchronous boundaries.

    Attributes
    protected
    Definition Classes
    PublishSubjectObservable
  41. def subscribe(observer: Observer[T]): Cancelable

    Function that creates the actual subscription when calling subscribe, and that starts the stream, being meant to be overridden in custom combinators or in classes implementing Observable.

    Function that creates the actual subscription when calling subscribe, and that starts the stream, 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 Rx grammar.

    returns

    a cancelable that can be used to cancel the streaming

    Definition Classes
    PublishSubjectObservable
  42. def subscribeOn(s: Scheduler): Observable[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
    Observable
  43. def subscribeUnit(nextFn: (T) ⇒ Unit): Cancelable

    Helper to be used by consumers for subscribing to an observable.

    Helper to be used by consumers for subscribing to an observable.

    Definition Classes
    Observable
  44. def subscribeUnit(nextFn: (T) ⇒ Unit, errorFn: (Throwable) ⇒ Unit): Cancelable

    Helper to be used by consumers for subscribing to an observable.

    Helper to be used by consumers for subscribing to an observable.

    Definition Classes
    Observable
  45. def subscribeUnit(nextFn: (T) ⇒ Unit, errorFn: (Throwable) ⇒ Unit, completedFn: () ⇒ Unit): Cancelable

    Helper to be used by consumers for subscribing to an observable.

    Helper to be used by consumers for subscribing to an observable.

    Definition Classes
    Observable
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def tail: Observable[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
    Observable
  48. def take(n: Long): Observable[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
    Observable
  49. def takeWhile(p: (T) ⇒ Boolean): Observable[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
    Observable
  50. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def zip[U](other: Observable[U]): Observable[(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
    Observable

Inherited from Subject[T]

Inherited from Observer[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped