reactor.core.publisher.Operators.addCapCancellable()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(107)

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

Operators.addCapCancellable介绍

暂无

代码示例

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

@Override
public final void request(long n) {
  if (Operators.validate(n)) {
    Operators.addCapCancellable(REQUESTED, this, n);
    drainParent();
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    Operators.addCapCancellable(REQUESTED, this, n);
    parent.drain();
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    if (fusionMode() == NONE) {
      Operators.addCapCancellable(REQUESTED, this, n);
    }
    buffer.replay(this);
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    if (fusionMode() == NONE) {
      Operators.addCapCancellable(REQUESTED, this, n);
    }
    ReplaySubscriber<T> p = parent;
    if (p != null) {
      p.buffer.replay(this);
    }
  }
}

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

@Override
public final void request(long n) {
  if (Operators.validate(n)) {
    Operators.addCapCancellable(REQUESTED, this, n);
    drainParent();
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    Operators.addCapCancellable(REQUESTED, this, n);
    parent.drain();
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    if (fusionMode() == NONE) {
      Operators.addCapCancellable(REQUESTED, this, n);
    }
    buffer.replay(this);
  }
}

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

@Override
public void request(long n) {
  if (Operators.validate(n)) {
    if (fusionMode() == NONE) {
      Operators.addCapCancellable(REQUESTED, this, n);
    }
    ReplaySubscriber<T> p = parent;
    if (p != null) {
      p.buffer.replay(this);
    }
  }
}

相关文章