-
Notifications
You must be signed in to change notification settings - Fork 101
@RxLogSubscriber
Fernando Cejas edited this page Dec 6, 2015
·
1 revision
-
@RxLogSubscriber: Annotated classes which are of type
rx.Subscriber
will print the following debugging information when receiving items from anrx.Observable
:
@RxLogSubscriber
public class MySubscriberBackpressure extends Subscriber<Integer> {
@Override
public void onStart() {
request(40);
}
@Override
public void onNext(Integer value) {
//empty
}
@Override
public void onError(Throwable throwable) {
//empty
}
@Override
public void onCompleted() {
if (!isUnsubscribed()) {
unsubscribe();
}
}
}