Beispiel #1
0
 @Override
 protected void doComplete() {
   if (!elementFound) {
     broadcastNext(false);
   }
   super.doComplete();
 }
 @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();
     }
   }
 }
 @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);
     }
   }
 }
 @Override
 protected void doShutdown() {
   super.doShutdown();
   requestMapperStream.onComplete();
 }
 @Override
 protected void doError(Throwable ev) {
   recycle();
   requestMapperStream.onError(ev);
   super.doError(ev);
 }