io.reactivex.internal.operators.observable.ObservableRedo Maven / Gradle / Ivy
/**
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
* the License for the specific language governing permissions and limitations under the License.
*/
package io.reactivex.internal.operators.observable;
import java.util.concurrent.atomic.*;
import io.reactivex.*;
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.Exceptions;
import io.reactivex.functions.*;
import io.reactivex.internal.disposables.*;
import io.reactivex.internal.functions.ObjectHelper;
import io.reactivex.internal.observers.ToNotificationObserver;
import io.reactivex.subjects.*;
public final class ObservableRedo extends AbstractObservableWithUpstream {
final Function super Observable>, ? extends ObservableSource>> manager;
final boolean retryMode;
public ObservableRedo(ObservableSource source,
Function super Observable>, ? extends ObservableSource>> manager,
boolean retryMode) {
super(source);
this.manager = manager;
this.retryMode = retryMode;
}
@Override
public void subscribeActual(Observer super T> s) {
Subject> subject = BehaviorSubject.>create().toSerialized();
final RedoObserver parent = new RedoObserver(s, subject, source, retryMode);
ToNotificationObserver
© 2015 - 2025 Weber Informatics LLC | Privacy Policy