| Modifier and Type | Class and Description |
|---|---|
| pack-priv abstract static class | ObservableReplay.BoundedReplayBuffer<
the value type T>Base class for bounded buffering with options to specify an enter and leave transforms and custom truncation behavior. |
| pack-priv static interface | |
| pack-priv static class | |
| pack-priv static class | ObservableReplay.InnerDisposable<
the value type T>A Disposable that manages the disposed state of a child Observer in thread-safe manner. |
| pack-priv static class | |
| pack-priv static class | ObservableReplay.Node
Represents a node in a bounded replay buffer's linked list. |
| pack-priv static class | |
| pack-priv static interface | ObservableReplay.ReplayBuffer<
the value type T>The interface for interacting with various buffering logic. |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | ObservableReplay.SizeAndTimeBoundReplayBuffer<
the buffered value type T>Size and time bound replay buffer. |
| pack-priv static class | ObservableReplay.SizeBoundReplayBuffer<
the value type T>A bounded replay buffer implementation with size limit only. |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ObservableReplay. | bufferFactory
A factory that creates the appropriate buffer for the ReplayObserver. |
| pack-priv final AtomicReference | current
Holds the current subscriber that is, will be or just was subscribed to the source observable. |
| pack-priv static final ObservableReplay. | |
| pack-priv final ObservableSource | |
| pack-priv final ObservableSource | source
The source observable. |
| Access | Constructor and Description |
|---|---|
| private | ObservableReplay(ObservableSource<T> onSubscribe, ObservableSource<T> source, final AtomicReference<ObservableReplay.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | connect(Consumer<? super Disposable>
the action that receives the connection subscription before the subscription to source happens
allowing the caller to synchronously disconnect a synchronous source connection)Implements abstract io. ConnectableObservable to begin emitting the items from its underlying
Observable to its Observers.
|
| public static < the value type T> ConnectableObservable | Returns: the new ConnectableObservable instancethe source ObservableSource to use source, final int the maximum number of elements to hold bufferSize)Creates a replaying ConnectableObservable with a size bound buffer. |
| public static < the value type T> ConnectableObservable | Returns: the new ConnectableObservable instancethe source ObservableSource to use source, long the maximum age of entries maxAge, TimeUnit the unit of measure of the age amount unit, Scheduler the target scheduler providing the current time scheduler)Creates a replaying ConnectableObservable with a time bound buffer. |
| public static < the value type T> ConnectableObservable | Returns: the new ConnectableObservable instancethe source ObservableSource to use source, final long the maximum age of entries maxAge, final TimeUnit the unit of measure of the age amount unit, final Scheduler the target scheduler providing the current time scheduler, final int the maximum number of elements to hold bufferSize)Creates a replaying ConnectableObservable with a size and time bound buffer. |
| pack-priv static <T> ConnectableObservable | Returns: the connectable observablethe source observable source, final ObservableReplay.the factory to instantiate the appropriate buffer when the observable becomes active bufferFactoryCreates a OperatorReplay instance to replay values of the given source observable. |
| public static < the value type T> ConnectableObservable | Returns: the new ConnectableObservable instancethe source observable source)Creates a replaying ConnectableObservable with an unbounded buffer. |
| public static < the value type of the ConnectableObservable U, the result value type R> Observable | Returns: the new Observable instancethe factory that returns a ConnectableObservable for each individual subscriber connectableFactory, final Function<? super Observable<U>, ? extends ObservableSource<R>> the function that receives an Observable and should return another Observable that will be subscribed to selector)Given a connectable observable factory, it multicasts over the generated ConnectableObservable via a selector function. |
| public static < the value type T> ConnectableObservable | Returns: the new ConnectableObservable instancethe connectable observable instance co, final Scheduler the target scheduler scheduler)Child Observers will observe the events of the ConnectableObservable on the specified scheduler. |
| public void | resetIf(Disposable
the disposable received from a previous connectionObject)connect() call.Implements io. Disposable connection instance
is still representing a connection established by a previous connect() connection.
|
| public ObservableSource | source()
Implements io. |
| protected void | subscribeActual(Observer<? super T>
the incoming Observer, never null observer)Implements abstract io. Observers.
|