Пример #1
0
 @Override
 protected void doComplete() {
   if (!elementFound) {
     broadcastNext(false);
   }
   super.doComplete();
 }
Пример #2
0
 @Override
 public void cancel() {
   super.cancel();
   FallbackSubscriber fallbackSubscriber = this.fallbackSubscriber;
   if (fallbackSubscriber != null) {
     Subscription subscription = fallbackSubscriber.subscription;
     if (subscription != null) {
       fallbackSubscriber.subscription = null;
       subscription.cancel();
     }
   }
 }
Пример #3
0
 @Override
 protected void requestUpstream(long capacity, boolean terminated, long elements) {
   FallbackSubscriber fallbackSubscriber = this.fallbackSubscriber;
   if (fallbackSubscriber == null) {
     BackpressureUtils.getAndAdd(REQUESTED, this, elements);
     super.requestUpstream(capacity, terminated, elements);
   } else {
     Subscription subscription = fallbackSubscriber.subscription;
     if (subscription != null) {
       subscription.request(elements);
     }
   }
 }
Пример #4
0
 @Override
 protected void doShutdown() {
   super.doShutdown();
   requestMapperStream.onComplete();
 }
Пример #5
0
 @Override
 protected void doError(Throwable ev) {
   recycle();
   requestMapperStream.onError(ev);
   super.doError(ev);
 }