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

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

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

Processor.onSubscribe介绍

暂无

代码示例

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

@Override
public void onSubscribe(Subscription subscription) {
  processor.onSubscribe(subscription);
}

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

@Override
public void onSubscribe(Subscription s) {
  source.onSubscribe(s);
}

代码示例来源:origin: com.github.akarnokd/rxjava2-extensions

@Override
public void onSubscribe(Subscription s) {
  source.onSubscribe(s);
}

代码示例来源:origin: com.typesafe.netty/netty-reactive-streams-http

@Override
public void onSubscribe(Subscription subscription) {
  processor.onSubscribe(subscription);
}

代码示例来源:origin: reactor/reactive-streams-commons

@Override
public void onSubscribe(Subscription s) {
  if (SubscriptionHelper.setOnce(S, this, s)) {
    processor.onSubscribe(s);
  }
}

代码示例来源:origin: org.reactivestreams/reactive-streams-flow-adapters

@Override
public void onSubscribe(Flow.Subscription subscription) {
  reactiveStreams.onSubscribe((subscription == null) ? null : new ReactiveToFlowSubscription(subscription));
}

代码示例来源:origin: com.github.akarnokd/rxjava2-jdk9-interop

@Override
public void onSubscribe(Flow.Subscription subscription) {
  actual.onSubscribe(new FlowToRsSubscription(subscription));
}

代码示例来源:origin: reactor/reactive-streams-commons

@Override
public void onSubscribe(Subscription s) {
  Fuseable.QueueSubscription<?> a = this.s;
  if (isTerminated()) {
    s.cancel();
    return;
  }
  if (a != null) {
    s.cancel();
    return;
  }
  if (S.compareAndSet(this, null, (Fuseable.QueueSubscription<?>)s)) {
    processor.onSubscribe(s);
  }
  else {
    s.cancel();
  }
}

相关文章