org.reactivestreams.Processor.onError()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.reactivestreams.Processor.onError()方法的一些代码示例,展示了Processor.onError()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.onError()方法的具体详情如下:
包路径:org.reactivestreams.Processor
类名称:Processor
方法名:onError

Processor.onError介绍

暂无

代码示例

代码示例来源:origin: micronaut-projects/micronaut-core

@Override
public void onError(Throwable error) {
  processor.onError(error);
}

代码示例来源:origin: ReactiveX/RxJava

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  downstream.onError(t);
}

代码示例来源:origin: ReactiveX/RxJava

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  downstream.onError(t);
}

代码示例来源:origin: redisson/redisson

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  actual.onError(t);
}

代码示例来源:origin: redisson/redisson

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  actual.onError(t);
}

代码示例来源:origin: ReactiveX/RxJava

@Override
public void onError(Throwable t) {
  if (done) {
    RxJavaPlugins.onError(t);
    return;
  }
  for (Processor<T, T> w : windows) {
    w.onError(t);
  }
  windows.clear();
  error = t;
  done = true;
  drain();
}

代码示例来源:origin: reactor/reactor-core

@Override
public void onError(Throwable t) {
  if (done) {
    Operators.onErrorDropped(t, ctx);
    return;
  }
  done = true;
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  actual.onError(t);
}

代码示例来源:origin: redisson/redisson

@Override
public void onError(Throwable t) {
  if (done) {
    RxJavaPlugins.onError(t);
    return;
  }
  for (Processor<T, T> w : windows) {
    w.onError(t);
  }
  windows.clear();
  error = t;
  done = true;
  drain();
}

代码示例来源:origin: reactor/reactor-core

@Override
public void onError(Throwable t) {
  if (done) {
    Operators.onErrorDropped(t, actual.currentContext());
    return;
  }
  done = true;
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  actual.onError(t);
}

代码示例来源:origin: reactor/reactor-core

@Override
public void onError(Throwable t) {
  if (done) {
    Operators.onErrorDropped(t, actual.currentContext());
    return;
  }
  done = true;
  for (Processor<T, T> w : this) {
    w.onError(t);
  }
  clear();
  error = t;
  drain();
}

代码示例来源:origin: rsocket/rsocket-java

private void handleSendProcessorCancel(SignalType t) {
 if (SignalType.ON_ERROR == t) {
  return;
 }
 receivers.values().forEach(subscriber -> {
  try {
   subscriber.onError(new Throwable("closed connection"));
  } catch (Throwable e) {
   errorConsumer.accept(e);
  }
 });
 senders.values().forEach(LimitableRequestPublisher::cancel);
}

代码示例来源:origin: rsocket/rsocket-java

private void handleSendProcessorError(Throwable t) {
 Throwable terminationError = lifecycle.getTerminationError();
 Throwable err = terminationError != null ? terminationError : t;
 receivers.values().forEach(subscriber -> {
  try {
   subscriber.onError(err);
  } catch (Throwable e) {
   errorConsumer.accept(e);
  }
 });
 senders.values().forEach(LimitableRequestPublisher::cancel);
}

代码示例来源:origin: rsocket/rsocket-java

private synchronized void cleanUpSubscriber(Processor subscriber) {
 try {
  subscriber.onError(lifecycle.getTerminationError());
 } catch (Throwable t) {
  errorConsumer.accept(t);
 }
}

代码示例来源:origin: rsocket/rsocket-java

private void handleSendProcessorError(Throwable t) {
 sendingSubscriptions.values().forEach(subscription -> {
  try {
   subscription.cancel();
  } catch (Throwable e) {
   errorConsumer.accept(e);
  }
 });
 channelProcessors.values().forEach(subscription -> {
  try {
   subscription.onError(t);
  } catch (Throwable e) {
   errorConsumer.accept(e);
  }
 });
}

代码示例来源:origin: akarnokd/RxJava2Extensions

@Override
public void onError(Throwable t) {
  error = t;
  done = true;
  source.onError(t);
}

代码示例来源:origin: akarnokd/RxJava2Extensions

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  downstream.onError(t);
}

代码示例来源:origin: io.rsocket/rsocket-core

private void handleSendProcessorError(Throwable t) {
 Throwable terminationError = lifecycle.getTerminationError();
 Throwable err = terminationError != null ? terminationError : t;
 receivers.values().forEach(subscriber -> {
  try {
   subscriber.onError(err);
  } catch (Throwable e) {
   errorConsumer.accept(e);
  }
 });
 senders.values().forEach(LimitableRequestPublisher::cancel);
}

代码示例来源:origin: akarnokd/RxJava3-preview

@Override
public void onError(Throwable t) {
  Processor<T, T> w = window;
  if (w != null) {
    window = null;
    w.onError(t);
  }
  actual.onError(t);
}

代码示例来源:origin: akarnokd/RxJava2Extensions

@Override
  public void run() {
    try {
      action.accept(processor, d);
    } catch (Throwable ex) {
      Exceptions.throwIfFatal(ex);
      processor.onError(ex);
    }
  }
}));

代码示例来源:origin: io.apptik.rhub/roxy-rs

@Override
public void onError(Throwable t) {
  if (tePolicy.equals(WRAP)) {
    proc.onNext(new Event.ErrorEvent(t));
  } else if (tePolicy.equals(PASS)) {
    proc.onError(t);
  }
}

相关文章