org.springframework.cloud.stream.annotation.Output.<init>()方法的使用及代码示例

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

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

Output.<init>介绍

暂无

代码示例

代码示例来源:origin: spring-cloud-incubator/spring-cloud-alibaba

@Output("output2")
  MessageChannel output2();
}

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: spring-cloud-incubator/spring-cloud-alibaba

@Output("output1")
MessageChannel output1();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: dyc87112/SpringCloud-Learning

@Output(OUTPUT)
MessageChannel output();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("user-message-out")
MessageChannel output();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("user-message-out")
MessageChannel output();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("activemq-out")
MessageChannel activeMQOut();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("user-message-out")
MessageChannel output();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("activemq-out")
MessageChannel activeMQOut();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("user-message-out")
MessageChannel output();

代码示例来源:origin: mercyblitz/segmentfault-lessons

@Output("activemq-out")
MessageChannel activeMQOut();

代码示例来源:origin: org.springframework.cloud/spring-cloud-bus

@Autowired
@Output(SpringCloudBusClient.OUTPUT)
public void setCloudBusOutboundChannel(MessageChannel cloudBusOutboundChannel) {
  this.cloudBusOutboundChannel = cloudBusOutboundChannel;
}

代码示例来源:origin: org.nhind/gateway

@Output(SmtpGatewayMessageOutput.SMTP_GATEWAY_MESSAGE_OUTPUT)
public <T> void sendMimeMessage(MimeMessage msg)
{
  try
  {
    this.smtpGatewayChannel.send(SMTPMailMessageConverter.toStreamMessage(mimeMsgToSMTPMailMessage(msg)));
  }
  catch (Exception e)
  {
    LOGGER.warn("Failed to send SMTP message to gateway processor stream channel.", e);
  }
}

代码示例来源:origin: spring-cloud/spring-cloud-stream-samples

@StreamListener
@Output(Processor.OUTPUT)
public Flux<String> aggregate(@Input(Processor.INPUT) Flux<String> inbound) {
  return inbound.
      log()
      .window(Duration.ofSeconds(5), Duration.ofSeconds(5))
      .flatMap(w -> w.reduce("", (s1,s2)->s1+s2))
      .log();
}

代码示例来源:origin: spring-cloud/spring-cloud-stream-samples

@StreamListener
@Output(Processor.OUTPUT)
public Flux<Average> calculateAverage(@Input(Processor.INPUT) Flux<Sensor> data) {
  return data.window(Duration.ofSeconds(3)).flatMap(
      window -> window.groupBy(Sensor::getId).flatMap(this::calculateAverage));
}

相关文章

Output类方法