本文整理了Java中org.reactivestreams.Processor.onError()
方法的一些代码示例,展示了Processor.onError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.onError()
方法的具体详情如下:
包路径:org.reactivestreams.Processor
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!