rx.lang.scala

ExperimentalObservable

class ExperimentalObservable[+T] extends AnyRef

Annotations
@deprecated
Deprecated

(Since version 0.25.0) Use new methods in Observable instead. This is kept here only for backward compatibility.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ExperimentalObservable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExperimentalObservable(o: Observable[T])

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 ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def doOnRequest(onRequest: (Long) ⇒ Unit): Observable[T]

    An Observable wrapping the source one that will invokes the given action when it receives a request for more items.

    An Observable wrapping the source one that will invokes the given action when it receives a request for more items.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    onRequest

    the action that gets called when an Observer requests items from this Observable

    returns

    an Observable that will call onRequest when appropriate

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.doOnRequest instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: Do

  2. def flatMapWithMaxConcurrent[R](onNext: (T) ⇒ Observable[R], onError: (Throwable) ⇒ Observable[R], onCompleted: () ⇒ Observable[R], maxConcurrent: Int): Observable[R]

    Returns an Observable that applies a function to each item emitted or notification raised by the source Observable and then flattens the Observable s returned from these functions and emits the resulting items, while limiting the maximum number of concurrent subscriptions to these Observables.

    Returns an Observable that applies a function to each item emitted or notification raised by the source Observable and then flattens the Observable s returned from these functions and emits the resulting items, while limiting the maximum number of concurrent subscriptions to these Observables.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    onNext

    a function that returns an Observable to merge for each item emitted by the source Observable

    onError

    a function that returns an Observable to merge for an onError notification from the source Observable

    onCompleted

    a function that returns an Observable to merge for an onCompleted notification from the source Observable

    maxConcurrent

    the maximum number of Observables that may be subscribed to concurrently

    returns

    an Observable that emits the results of merging the Observables returned from applying the specified functions to the emissions and notifications of the source Observable

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.flatMap[R](maxConcurrent:Int,onNext:T=>rx\.lang\.scala\.Observable[R],onError:Throwable=>rx\.lang\.scala\.Observable[R],onCompleted:()=>rx\.lang\.scala\.Observable[R])* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: FlatMap

  3. def flatMapWithMaxConcurrent[R](f: (T) ⇒ Observable[R], maxConcurrent: Int): Observable[R]

    Returns an Observable that emits items based on 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, while limiting the maximum number of concurrent subscriptions to these Observables.

    Returns an Observable that emits items based on 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, while limiting the maximum number of concurrent subscriptions to these Observables.

    $$noDefaultScheduler

    f

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

    maxConcurrent

    the maximum number of Observables that may be subscribed to concurrently

    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

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.flatMap[R](maxConcurrent:Int,f:T=>rx\.lang\.scala\.Observable[R])* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: FlatMap

  4. def onBackpressureBlock: Observable[T]

    Instructs an Observable will block the producer thread if the source emits items faster than its Observer can consume them

    Instructs an Observable will block the producer thread if the source emits items faster than its Observer can consume them

    The producer side can emit up to the system-wide ring buffer size onNext elements without blocking, but the consumer side considers the amount its downstream requested through Producer.request(n) and doesn't emit more than requested even if available.

    Note that if the upstream Observable does support backpressure, this operator ignores that capability and doesn't propagate any backpressure requests from downstream.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    returns

    an Observable that will block the producer thread if the source emits items faster than its Observer can consume them

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.onBackpressureBlock:* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: backpressure operators

  5. def onBackpressureBlock(maxQueueLength: Int): Observable[T]

    Instructs an Observable will block the producer thread if the source emits items faster than its Observer can consume them

    Instructs an Observable will block the producer thread if the source emits items faster than its Observer can consume them

    The producer side can emit up to maxQueueLength onNext elements without blocking, but the consumer side considers the amount its downstream requested through Producer.request(n) and doesn't emit more than requested even if more is available. For example, using onBackpressureBlock(384).observeOn(Schedulers.io()) will not throw a MissingBackpressureException.

    Note that if the upstream Observable does support backpressure, this operator ignores that capability and doesn't propagate any backpressure requests from downstream.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    maxQueueLength

    the maximum number of items the producer can emit without blocking

    returns

    an Observable that will block the producer thread if the source emits items faster than its Observer can consume them

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.onBackpressureBlock(maxQueueLength:Int)* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: backpressure operators

  6. def onBackpressureBufferWithCapacity(capacity: Long, onOverflow: ⇒ Unit): Observable[T]

    Instructs an Observable that is emitting items faster than its Observer can consume them to buffer up to a given amount of items until they can be emitted.

    Instructs an Observable that is emitting items faster than its Observer can consume them to buffer up to a given amount of items until they can be emitted. The resulting Observable will emit BufferOverflowException as soon as the buffer's capacity is exceeded, drop all undelivered items, unsubscribe from the source, and notify onOverflow.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    capacity

    capacity of the internal buffer.

    onOverflow

    an action to run when the buffer's capacity is exceeded. This is a by-name parameter.

    returns

    the source Observable modified to buffer items up to the given capacity

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.onBackpressureBuffer(capacity:Long,onOverflow:=>Unit)* instead. This is kept here only for backward compatibility.

    Since

    (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)

    See also

    ReactiveX operators documentation: backpressure operators

  7. def onBackpressureBufferWithCapacity(capacity: Long): Observable[T]

    Instructs an Observable that is emitting items faster than its Observer can consume them to buffer up to a given amount of items until they can be emitted.

    Instructs an Observable that is emitting items faster than its Observer can consume them to buffer up to a given amount of items until they can be emitted. The resulting Observable will emit BufferOverflowException as soon as the buffer's capacity is exceeded, drop all undelivered items, and unsubscribe from the source.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    capacity

    capacity of the internal buffer.

    returns

    an Observable that will buffer items up to the given capacity

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.onBackpressureBuffer(capacity:Long)* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: backpressure operators

  8. def onBackpressureDropDo(onDrop: (T) ⇒ Unit): Observable[T]

    Instructs an Observable that is emitting items faster than its observer can consume them to discard, rather than emit, those items that its observer is not prepared to observe.

    Instructs an Observable that is emitting items faster than its observer can consume them to discard, rather than emit, those items that its observer is not prepared to observe.

    If the downstream request count hits 0 then the Observable will refrain from calling onNext until the observer invokes request(n) again to increase the request count.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    onDrop

    the action to invoke for each item dropped. onDrop action should be fast and should never block.

    returns

    an new Observable that will drop onNext notifications on overflow

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.onBackpressureDrop(onDrop:T=>Unit)* instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: backpressure operators

  9. def switchIfEmpty[U >: T](alternate: Observable[U]): Observable[U]

    Returns an Observable that emits the items emitted by the source Observable or the items of an alternate Observable if the source Observable is empty.

    Returns an Observable that emits the items emitted by the source Observable or the items of an alternate Observable if the source Observable is empty.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    alternate

    the alternate Observable to subscribe to if the source does not emit any items

    returns

    an Observable that emits the items emitted by the source Observable or the items of an alternate Observable if the source Observable is empty.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.switchIfEmpty instead. This is kept here only for backward compatibility.

  10. def takeUntil(stopPredicate: (T) ⇒ Boolean): Observable[T]

    Returns an Observable that emits items emitted by the source Observable, checks the specified predicate for each item, and then completes if the condition is satisfied.

    Returns an Observable that emits items emitted by the source Observable, checks the specified predicate for each item, and then completes if the condition is satisfied.

    The difference between this operator and takeWhile(T => Boolean) is that here, the condition is evaluated after the item is emitted.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    stopPredicate

    a function that evaluates an item emitted by the source Observable and returns a Boolean

    returns

    an Observable that first emits items emitted by the source Observable, checks the specified condition after each item, and then completes if the condition is satisfied.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.takeUntil(stopPredicate:T=>Boolean)* instead. This is kept here only for backward compatibility.

    See also

    Observable.takeWhile

    ReactiveX operators documentation: TakeUntil

  11. def withLatestFrom[U, R](other: Observable[U])(resultSelector: (T, U) ⇒ R): Observable[R]

    Merges the specified Observable into this Observable sequence by using the resultSelector function only when the source Observable (this instance) emits an item.

    Merges the specified Observable into this Observable sequence by using the resultSelector function only when the source Observable (this instance) emits an item.

    Scheduler:

    This method does not operate by default on a particular Scheduler.

    A class to add Experimental/Beta APIs in RxJava. These APIs can change at any time.

    import rx.lang.scala.ExperimentalAPIs._ to enable them.

    other

    the other Observable

    resultSelector

    the function to call when this Observable emits an item and the other Observable has already emitted an item, to generate the item to be emitted by the resulting Observable

    returns

    an Observable that merges the specified Observable into this Observable by using the resultSelector function only when the source Observable sequence (this instance) emits an item

    Annotations
    @deprecated
    Deprecated

    (Since version 0.25.0) Use Observable.withLatestFrom instead. This is kept here only for backward compatibility.

    See also

    ReactiveX operators documentation: CombineLatest

Inherited from AnyRef

Inherited from Any

Ungrouped