44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package j0.l.a;
|
|
|
|
import java.util.Objects;
|
|
import rx.Subscriber;
|
|
/* compiled from: OperatorThrottleFirst */
|
|
public class k2 extends Subscriber<T> {
|
|
public long i = -1;
|
|
public final /* synthetic */ Subscriber j;
|
|
public final /* synthetic */ l2 k;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public k2(l2 l2Var, Subscriber subscriber, Subscriber subscriber2) {
|
|
super(subscriber);
|
|
this.k = l2Var;
|
|
this.j = subscriber2;
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onCompleted() {
|
|
this.j.onCompleted();
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onError(Throwable th) {
|
|
this.j.onError(th);
|
|
}
|
|
|
|
@Override // j0.g
|
|
public void onNext(T t) {
|
|
Objects.requireNonNull(this.k.j);
|
|
long currentTimeMillis = System.currentTimeMillis();
|
|
long j = this.i;
|
|
if (j == -1 || currentTimeMillis < j || currentTimeMillis - j >= this.k.i) {
|
|
this.i = currentTimeMillis;
|
|
this.j.onNext(t);
|
|
}
|
|
}
|
|
|
|
@Override // rx.Subscriber
|
|
public void onStart() {
|
|
request(Long.MAX_VALUE);
|
|
}
|
|
}
|