本文整理了Java中org.springframework.cloud.stream.annotation.Output
类的一些代码示例,展示了Output
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output
类的具体详情如下:
包路径:org.springframework.cloud.stream.annotation.Output
类名称:Output
暂无
代码示例来源:origin: spring-cloud-incubator/spring-cloud-alibaba
@Output("output2")
MessageChannel output2();
}
代码示例来源:origin: spring-cloud/spring-cloud-stream
public static String getOutboundBindingTargetName(Method method) {
SendTo sendTo = AnnotationUtils.findAnnotation(method, SendTo.class);
if (sendTo != null) {
Assert.isTrue(!ObjectUtils.isEmpty(sendTo.value()), StreamAnnotationErrorMessages.ATLEAST_ONE_OUTPUT);
Assert.isTrue(sendTo.value().length == 1, StreamAnnotationErrorMessages.SEND_TO_MULTIPLE_DESTINATIONS);
Assert.hasText(sendTo.value()[0], StreamAnnotationErrorMessages.SEND_TO_EMPTY_DESTINATION);
return sendTo.value()[0];
}
Output output = AnnotationUtils.findAnnotation(method, Output.class);
if (output != null) {
Assert.isTrue(StringUtils.hasText(output.value()), StreamAnnotationErrorMessages.ATLEAST_ONE_OUTPUT);
return output.value();
}
return null;
}
代码示例来源:origin: spring-cloud/spring-cloud-stream
protected static String getOutboundBindingTargetName(Method method) {
SendTo sendTo = AnnotationUtils.findAnnotation(method, SendTo.class);
if (sendTo != null) {
Assert.isTrue(!ObjectUtils.isEmpty(sendTo.value()), StreamListenerErrorMessages.ATLEAST_ONE_OUTPUT);
Assert.isTrue(sendTo.value().length == 1, StreamListenerErrorMessages.SEND_TO_MULTIPLE_DESTINATIONS);
Assert.hasText(sendTo.value()[0], StreamListenerErrorMessages.SEND_TO_EMPTY_DESTINATION);
return sendTo.value()[0];
}
Output output = AnnotationUtils.findAnnotation(method, Output.class);
if (output != null) {
Assert.isTrue(StringUtils.hasText(output.value()), StreamListenerErrorMessages.ATLEAST_ONE_OUTPUT);
return output.value();
}
return null;
}
}
代码示例来源: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: 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: spring-cloud/spring-cloud-stream-binder-kafka
/**
* Output binding.
*
* @return {@link Output} binding for {@link KStream} type.
*/
@Output("output")
KStream<?, ?> output();
}
代码示例来源:origin: coderqianlq/spring-cloud-cli
/**
* 消息生产者
* @return MessageChannel
*/
@Output(PRODUCER)
MessageChannel producer();
}
内容来源于网络,如有侵权,请联系作者删除!