本文整理了Java中org.reactivestreams.Processor.onNext()
方法的一些代码示例,展示了Processor.onNext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Processor.onNext()
方法的具体详情如下:
包路径:org.reactivestreams.Processor
类名称:Processor
方法名:onNext
暂无
代码示例来源:origin: micronaut-projects/micronaut-core
@Override
public void onNext(WebSocketFrame webSocketFrame) {
processor.onNext(webSocketFrame);
}
代码示例来源:origin: reactor/reactor-core
void sendNext(int count) {
for (int i = 0; i < count; i++) {
// System.out.println("XXXX " + x);
processor.onNext((x++) + "\n");
}
}
}
代码示例来源:origin: ReactiveX/RxJava
/**
* Emit the given values and complete the Processor.
* @param <T> the value type
* @param p the target processor
* @param values the values to emit
*/
public static <T> void emit(Processor<T, ?> p, T... values) {
for (T v : values) {
p.onNext(v);
}
p.onComplete();
}
代码示例来源:origin: ReactiveX/RxJava
w.onNext(t);
代码示例来源:origin: redisson/redisson
w.onNext(t);
代码示例来源:origin: reactor/reactor-core
w.onNext(t);
代码示例来源:origin: akaita/RxJava2Debug
/**
* Emit the given values and complete the Processor.
* @param <T> the value type
* @param p the target processor
* @param values the values to emit
*/
public static <T> void emit(Processor<T, ?> p, T... values) {
for (T v : values) {
p.onNext(v);
}
p.onComplete();
}
代码示例来源:origin: akarnokd/RxJava2Extensions
@Override
public void onNext(T t) {
source.onNext(t);
}
代码示例来源:origin: io.projectreactor/reactor-logback
protected void queueLoggingEvent(ILoggingEvent evt) {
if (null != delegate.get()) {
processor.onNext(evt);
}
}
代码示例来源:origin: reactor/reactor-netty
void sendNext(int count) {
for (int i = 0; i < count; i++) {
System.out.println("XXXX " + x);
broadcaster.onNext(x++ + "\n");
}
}
}
代码示例来源:origin: reactor/reactive-streams-commons
@Override
public void onNext(T t) {
if(isTerminated()){
UnsignalledExceptions.onNextDropped(t);
return;
}
processor.onNext(t);
}
代码示例来源:origin: reactor/reactor-netty
void sendNext(int count) {
for (int i = 0; i < count; i++) {
// System.out.println("XXXX " + x);
String data = x++ + "\n";
processor.onNext(Unpooled.copiedBuffer(data.getBytes(Charset.defaultCharset())));
}
}
}
代码示例来源:origin: akarnokd/RxJava2Extensions
/**
* Emit the given values and complete the Processor.
* @param <T> the value type
* @param p the target processor
* @param values the values to emit
*/
public static <T> void emit(Processor<T, ?> p, T... values) {
for (T v : values) {
p.onNext(v);
}
p.onComplete();
}
代码示例来源:origin: akarnokd/RxJava3-preview
/**
* Emit the given values and complete the Processor.
* @param <T> the value type
* @param p the target processor
* @param values the values to emit
*/
public static <T> void emit(Processor<T, ?> p, T... values) {
for (T v : values) {
p.onNext(v);
}
p.onComplete();
}
代码示例来源:origin: apptik/RHub
@Override
public void onComplete() {
if (tePolicy.equals(WRAP)) {
proc.onNext(Event.COMPLETE);
cnt.decrementAndGet();
cnt.compareAndSet(0, mat.settings().maxInputBufferSize());
} else if (tePolicy.equals(PASS)) {
proc.onComplete();
}
}
});
代码示例来源:origin: akarnokd/RxJava3-preview
/**
* Emit the given values and complete the Processor.
* @param <T> the value type
* @param p the target processor
* @param values the values to emit
*/
public static <T> void emit(Processor<T, ?> p, T... values) {
for (T v : values) {
p.onNext(v);
}
p.onComplete();
}
代码示例来源:origin: io.apptik.rhub/roxy-rs
@Override
public void onComplete() {
if (tePolicy.equals(WRAP)) {
proc.onNext(Event.COMPLETE);
} else if (tePolicy.equals(PASS)) {
proc.onComplete();
}
}
});
代码示例来源:origin: apptik/RHub
@Override
public void onError(Throwable t) {
if (tePolicy.equals(WRAP)) {
proc.onNext(new Event.ErrorEvent(t));
cnt.decrementAndGet();
cnt.compareAndSet(0, mat.settings().maxInputBufferSize());
} else if (tePolicy.equals(PASS)) {
proc.onError(t);
}
}
代码示例来源:origin: apptik/RHub
@Override
public void onError(Throwable t) {
if (tePolicy.equals(WRAP)) {
proc.onNext(new Event.ErrorEvent(t));
} else if (tePolicy.equals(PASS)) {
proc.onError(t);
}
}
代码示例来源: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!