Top Inners Fields Constructors Methods
io.reactivex.internal.operators.observable

public final Class ObservableWindowBoundarySelector<T, B, V>

extends AbstractObservableWithUpstream<T, Observable<T>>
Class Inheritance
Imports
java.util.*, java.util.concurrent.atomic.*, io.reactivex.Observable, .ObservableSource, .Observer, io.reactivex.disposables.*, io.reactivex.exceptions.Exceptions, io.reactivex.functions.Function, io.reactivex.internal.disposables.DisposableHelper, io.reactivex.internal.functions.ObjectHelper, io.reactivex.internal.observers.QueueDrainObserver, io.reactivex.internal.queue.MpscLinkedQueue, io.reactivex.internal.util.NotificationLite, io.reactivex.observers.*, io.reactivex.plugins.RxJavaPlugins, io.reactivex.subjects.UnicastSubject

Nested and Inner Type Summary

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

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final Function<? super B, ? extends ObservableSource<V>>
pack-priv final ObservableSource<B>
Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
ObservableWindowBoundarySelector(ObservableSource<T> source, ObservableSource<B> open, Function<? super B, ? extends ObservableSource<V>> close, int bufferSize)

Method Summary

Modifier and TypeMethod and Description
public void
subscribeActual(Observer<? super Observable<T>>
the incoming Observer, never null
t
)

Implements abstract io.reactivex.Observable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.
Inherited from io.reactivex.internal.operators.observable.AbstractObservableWithUpstream:
source

Field Detail

bufferSizeback to summary
pack-priv final int bufferSize
closeback to summary
pack-priv final Function<? super B, ? extends ObservableSource<V>> close
openback to summary
pack-priv final ObservableSource<B> open

Constructor Detail

ObservableWindowBoundarySelectorback to summary
public ObservableWindowBoundarySelector(ObservableSource<T> source, ObservableSource<B> open, Function<? super B, ? extends ObservableSource<V>> close, int bufferSize)

Method Detail

subscribeActualback to summary
public void subscribeActual(Observer<? super Observable<T>> t)

Implements abstract io.reactivex.Observable.subscribeActual.

Doc from io.reactivex.Observable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Observers.

There is no need to call any of the plugin hooks on the current Observable instance or the Observer; all hooks and basic safeguards have been applied by subscribe(Observer) before this method gets called.

Parameters
t:Observer<? super Observable<T>>

the incoming Observer, never null

Annotations
@Override
io.reactivex.internal.operators.observable back to summary

pack-priv final Class ObservableWindowBoundarySelector.OperatorWindowBoundaryCloseObserver<T, V>

extends DisposableObserver<V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv final ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, ?, V>
pack-priv final UnicastSubject<T>
w

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
onComplete()

Implements io.reactivex.Observer.onComplete.

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

Implements io.reactivex.Observer.onError.

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

Implements io.reactivex.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from io.reactivex.observers.DisposableObserver:
disposeisDisposedonStartonSubscribe

Field Detail

doneback to summary
pack-priv boolean done
parentback to summary
pack-priv final ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, ?, V> parent
wback to summary
pack-priv final UnicastSubject<T> w

Constructor Detail

OperatorWindowBoundaryCloseObserverback to summary
pack-priv OperatorWindowBoundaryCloseObserver(ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, ?, V> parent, UnicastSubject<T> w)

Method Detail

onCompleteback to summary
public void onComplete()

Implements io.reactivex.Observer.onComplete.

Doc from io.reactivex.Observer.onComplete.

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 t)

Implements io.reactivex.Observer.onError.

Doc from io.reactivex.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 onComplete.

Parameters
t:Throwable

the exception encountered by the Observable

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

Implements io.reactivex.Observer.onNext.

Doc from io.reactivex.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 onComplete or onError.

Parameters
t:V

the item emitted by the Observable

Annotations
@Override
io.reactivex.internal.operators.observable back to summary

pack-priv final Class ObservableWindowBoundarySelector.OperatorWindowBoundaryOpenObserver<T, B>

extends DisposableObserver<B>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, B, ?>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
onComplete()

Implements io.reactivex.Observer.onComplete.

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

Implements io.reactivex.Observer.onError.

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

Implements io.reactivex.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from io.reactivex.observers.DisposableObserver:
disposeisDisposedonStartonSubscribe

Field Detail

parentback to summary
pack-priv final ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, B, ?> parent

Constructor Detail

OperatorWindowBoundaryOpenObserverback to summary
pack-priv OperatorWindowBoundaryOpenObserver(ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, B, ?> parent)

Method Detail

onCompleteback to summary
public void onComplete()

Implements io.reactivex.Observer.onComplete.

Doc from io.reactivex.Observer.onComplete.

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 t)

Implements io.reactivex.Observer.onError.

Doc from io.reactivex.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 onComplete.

Parameters
t:Throwable

the exception encountered by the Observable

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

Implements io.reactivex.Observer.onNext.

Doc from io.reactivex.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 onComplete or onError.

Parameters
t:B

the item emitted by the Observable

Annotations
@Override
io.reactivex.internal.operators.observable back to summary

pack-priv final Class ObservableWindowBoundarySelector.WindowBoundaryMainObserver<T, B, V>

extends QueueDrainObserver<T, Object, Observable<T>>
implements Disposable
Class Inheritance
All Implemented Interfaces
io.reactivex.disposables.Disposable

Field Summary

Modifier and TypeField and Description
pack-priv final AtomicReference<Disposable>
pack-priv final int
pack-priv final Function<? super B, ? extends ObservableSource<V>>
pack-priv final ObservableSource<B>
pack-priv final CompositeDisposable
pack-priv final AtomicBoolean
pack-priv Disposable
pack-priv final AtomicLong
pack-priv final List<UnicastSubject<T>>
Inherited from io.reactivex.internal.observers.QueueDrainObserver:
cancelleddonedownstreamerrorqueue

Constructor Summary

AccessConstructor and Description
pack-priv
WindowBoundaryMainObserver(Observer<? super Observable<T>> actual, ObservableSource<B> open, Function<? super B, ? extends ObservableSource<V>> close, int bufferSize)

Method Summary

Modifier and TypeMethod and Description
public void
accept(Observer<? super Observable<T>>
the subscriber to deliver values to
a
,
Object
the value to deliver
v
)

Overrides io.reactivex.internal.observers.QueueDrainObserver.accept.

Implements io.reactivex.internal.util.ObservableQueueDrain.accept.

Accept the value and return true if forwarded.
pack-priv void
public void
dispose()

Implements io.reactivex.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.
pack-priv void
pack-priv void
pack-priv void
public boolean
isDisposed()

Implements io.reactivex.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.
public void
onComplete()

Implements io.reactivex.Observer.onComplete.

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

Implements io.reactivex.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 io.reactivex.Observer.onNext.

Provides the Observer with a new item to observe.
public void
onSubscribe(Disposable
the Disposable instance whose Disposable#dispose() can be called anytime to cancel the connection
d
)

Implements io.reactivex.Observer.onSubscribe.

Provides the Observer with the means of cancelling (disposing) the connection (channel) with the Observable in both synchronous (from within onNext(Object)) and asynchronous manner.
pack-priv void
open(B b)

Inherited from io.reactivex.internal.observers.QueueDrainObserver:
cancelleddoneentererrorfastEnterfastPathEmitfastPathOrderedEmitleave

Field Detail

boundaryback to summary
pack-priv final AtomicReference<Disposable> boundary
bufferSizeback to summary
pack-priv final int bufferSize
closeback to summary
pack-priv final Function<? super B, ? extends ObservableSource<V>> close
openback to summary
pack-priv final ObservableSource<B> open
resourcesback to summary
pack-priv final CompositeDisposable resources
stopWindowsback to summary
pack-priv final AtomicBoolean stopWindows
upstreamback to summary
pack-priv Disposable upstream
windowsback to summary
pack-priv final AtomicLong windows
wsback to summary
pack-priv final List<UnicastSubject<T>> ws

Constructor Detail

WindowBoundaryMainObserverback to summary
pack-priv WindowBoundaryMainObserver(Observer<? super Observable<T>> actual, ObservableSource<B> open, Function<? super B, ? extends ObservableSource<V>> close, int bufferSize)

Method Detail

acceptback to summary
public void accept(Observer<? super Observable<T>> a, Object v)

Overrides io.reactivex.internal.observers.QueueDrainObserver.accept.

Implements io.reactivex.internal.util.ObservableQueueDrain.accept.

Doc from io.reactivex.internal.util.ObservableQueueDrain.accept.

Accept the value and return true if forwarded.

Parameters
a:Observer<? super Observable<T>>

the subscriber to deliver values to

v:Object

the value to deliver

Annotations
@Override
closeback to summary
pack-priv void close(ObservableWindowBoundarySelector.OperatorWindowBoundaryCloseObserver<T, V> w)
disposeback to summary
public void dispose()

Implements io.reactivex.disposables.Disposable.dispose.

Doc from io.reactivex.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.

Annotations
@Override
disposeBoundaryback to summary
pack-priv void disposeBoundary()
drainLoopback to summary
pack-priv void drainLoop()
errorback to summary
pack-priv void error(Throwable t)
isDisposedback to summary
public boolean isDisposed()

Implements io.reactivex.disposables.Disposable.isDisposed.

Doc from io.reactivex.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.

Returns:boolean

true if this resource has been disposed

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements io.reactivex.Observer.onComplete.

Doc from io.reactivex.Observer.onComplete.

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 t)

Implements io.reactivex.Observer.onError.

Doc from io.reactivex.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 onComplete.

Parameters
t:Throwable

the exception encountered by the Observable

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

Implements io.reactivex.Observer.onNext.

Doc from io.reactivex.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 onComplete or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Disposable d)

Implements io.reactivex.Observer.onSubscribe.

Doc from io.reactivex.Observer.onSubscribe.

Provides the Observer with the means of cancelling (disposing) the connection (channel) with the Observable in both synchronous (from within onNext(Object)) and asynchronous manner.

Parameters
d:Disposable

the Disposable instance whose Disposable#dispose() can be called anytime to cancel the connection

Annotations
@Override
openback to summary
pack-priv void open(B b)
io.reactivex.internal.operators.observable back to summary

pack-priv final Class ObservableWindowBoundarySelector.WindowOperation<T, B>

extends Object
Class Inheritance
  • java.lang.Object
  • io.reactivex.internal.operators.observable.ObservableWindowBoundarySelector.WindowOperation

Field Summary

Modifier and TypeField and Description
pack-priv final B
pack-priv final UnicastSubject<T>
w

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

openback to summary
pack-priv final B open
wback to summary
pack-priv final UnicastSubject<T> w

Constructor Detail

WindowOperationback to summary
pack-priv WindowOperation(UnicastSubject<T> w, B open)