Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorWindowWithObservableFactory<T, U>

extends Object
implements Observable.Operator<Observable<T>, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Type Parameters
<T>
the value type
<U>
the boundary value type
Imports
java.util.*, rx.Observable, .Observable.Operator, .Observer, .Subscriber, rx.functions.Func0, rx.observers.SerializedSubscriber, rx.subjects.UnicastSubject, rx.subscriptions.SerialSubscription

Creates non-overlapping windows of items where each window is terminated by an event from a secondary observable and a new window is started immediately.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final Object
NEXT_SUBJECT

Indicate the current subject should complete and a new subject be emitted.

pack-priv final Func0<? extends Observable<? extends U>>

Constructor Summary

AccessConstructor and Description
public
OperatorWindowWithObservableFactory(Func0<? extends Observable<? extends U>> otherFactory)

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(Subscriber<? super Observable<T>> child)

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NEXT_SUBJECTback to summary
pack-priv static final Object NEXT_SUBJECT

Indicate the current subject should complete and a new subject be emitted.

otherFactoryback to summary
pack-priv final Func0<? extends Observable<? extends U>> otherFactory

Constructor Detail

OperatorWindowWithObservableFactoryback to summary
public OperatorWindowWithObservableFactory(Func0<? extends Observable<? extends U>> otherFactory)

Method Detail

callback to summary
public Subscriber<? super T> call(Subscriber<? super Observable<T>> child)

Implements rx.functions.Func1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorWindowWithObservableFactory.BoundarySubscriber<T, U>

extends Subscriber<U>
Class Inheritance

Observes the boundary.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv final OperatorWindowWithObservableFactory.SourceSubscriber<T, U>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(U
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
public void
onStart()

Overrides rx.Subscriber.onStart.

This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber.
Inherited from rx.Subscriber:
addisUnsubscribedrequestsetProducerunsubscribe

Field Detail

doneback to summary
pack-priv boolean done
subback to summary
pack-priv final OperatorWindowWithObservableFactory.SourceSubscriber<T, U> sub

Constructor Detail

BoundarySubscriberback to summary
public BoundarySubscriber(OperatorWindowWithObservableFactory.SourceSubscriber<T, U> sub)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(U t)

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

Provides the Observer with a new item to observe.

The Observable may call this method 0 or more times.

The Observable will not call this method again after it calls either onCompleted or onError.

Parameters
t:U

the item emitted by the Observable

Annotations
@Override
onStartback to summary
public void onStart()

Overrides rx.Subscriber.onStart.

Doc from rx.Subscriber.onStart.

This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorWindowWithObservableFactory.SourceSubscriber<T, U>

extends Subscriber<T>
Class Inheritance

Observes the source.

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super Observable<T>>
pack-priv Observer<T>
consumer

Accessed from the serialized part.

pack-priv boolean
emitting

Guarded by guard.

pack-priv final Object
pack-priv final Func0<? extends Observable<? extends U>>
pack-priv Observable<T>
producer

Hides rx.Subscriber.producer.

Accessed from the serialized part.
pack-priv List<Object>
queue

Guarded by guard.

pack-priv final SerialSubscription

Constructor Summary

AccessConstructor and Description
public
SourceSubscriber(Subscriber<? super Observable<T>> child, Func0<? extends Observable<? extends U>> otherFactory)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
drain(List<Object> queue)

pack-priv void
emitValue(T t)

pack-priv void
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(T
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
public void
onStart()

Overrides rx.Subscriber.onStart.

This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber.
pack-priv void
pack-priv void
Inherited from rx.Subscriber:
addisUnsubscribedrequestsetProducerunsubscribe

Field Detail

childback to summary
pack-priv final Subscriber<? super Observable<T>> child
consumerback to summary
pack-priv Observer<T> consumer

Accessed from the serialized part.

emittingback to summary
pack-priv boolean emitting

Guarded by guard.

guardback to summary
pack-priv final Object guard
otherFactoryback to summary
pack-priv final Func0<? extends Observable<? extends U>> otherFactory
producerback to summary
pack-priv Observable<T> producer

Hides rx.Subscriber.producer.

Accessed from the serialized part.

queueback to summary
pack-priv List<Object> queue

Guarded by guard.

serialback to summary
pack-priv final SerialSubscription serial

Constructor Detail

SourceSubscriberback to summary
public SourceSubscriber(Subscriber<? super Observable<T>> child, Func0<? extends Observable<? extends U>> otherFactory)

Method Detail

completeback to summary
pack-priv void complete()
createNewWindowback to summary
pack-priv void createNewWindow()
drainback to summary
pack-priv void drain(List<Object> queue)
emitValueback to summary
pack-priv void emitValue(T t)
errorback to summary
pack-priv void error(Throwable e)
onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

Annotations
@Override
onErrorback to summary
public void onError(Throwable e)

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

Provides the Observer with a new item to observe.

The Observable may call this method 0 or more times.

The Observable will not call this method again after it calls either onCompleted or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override
onStartback to summary
public void onStart()

Overrides rx.Subscriber.onStart.

Doc from rx.Subscriber.onStart.

This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.

Annotations
@Override
replaceSubjectback to summary
pack-priv void replaceSubject()
replaceWindowback to summary
pack-priv void replaceWindow()