本文整理了Java中reactor.core.publisher.Operators.onNextInnerError()
方法的一些代码示例,展示了Operators.onNextInnerError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Operators.onNextInnerError()
方法的具体详情如下:
包路径:reactor.core.publisher.Operators
类名称:Operators
方法名:onNextInnerError
[英]Find the OnNextFailureStrategy to apply to the calling operator (which could be a local error mode defined in the Context) and apply it.
[中]找到要应用于呼叫操作员的OnExtFailureStrategy(可能是上下文中定义的本地错误模式)并应用它。
代码示例来源:origin: reactor/reactor-core
@Override
public void innerError(Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
if (!veryEnd) {
s.cancel();
done = true;
}
active = false;
drain();
}
else {
Operators.onErrorDropped(e, this.ctx);
}
}
else {
active = false;
}
}
代码示例来源:origin: reactor/reactor-core
void innerError(FlatMapInner<R> inner, Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
inner.done = true;
if (!delayError) {
done = true;
}
drain();
}
else {
Operators.onErrorDropped(e, actual.currentContext());
}
}
else {
drain();
}
}
代码示例来源:origin: reactor/reactor-core
@Override
public void innerError(Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
s.cancel();
if (GUARD.getAndIncrement(this) == 0) {
e = Exceptions.terminate(ERROR, this);
if (e != TERMINATED) {
actual.onError(e);
}
}
}
else {
Operators.onErrorDropped(e, this.ctx);
}
}
else {
active = false;
drain();
}
}
代码示例来源:origin: io.projectreactor/reactor-core
@Override
public void innerError(Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
if (!veryEnd) {
s.cancel();
done = true;
}
active = false;
drain();
}
else {
Operators.onErrorDropped(e, this.ctx);
}
}
else {
active = false;
}
}
代码示例来源:origin: io.projectreactor/reactor-core
void innerError(FlatMapInner<R> inner, Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
inner.done = true;
if (!delayError) {
done = true;
}
drain();
}
else {
Operators.onErrorDropped(e, actual.currentContext());
}
}
else {
drain();
}
}
代码示例来源:origin: io.projectreactor/reactor-core
@Override
public void innerError(Throwable e) {
e = Operators.onNextInnerError(e, currentContext(), s);
if(e != null) {
if (Exceptions.addThrowable(ERROR, this, e)) {
s.cancel();
if (GUARD.getAndIncrement(this) == 0) {
e = Exceptions.terminate(ERROR, this);
if (e != TERMINATED) {
actual.onError(e);
}
}
}
else {
Operators.onErrorDropped(e, this.ctx);
}
}
else {
active = false;
drain();
}
}
内容来源于网络,如有侵权,请联系作者删除!