首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring Cloud Stream Rabbit下发确认

Spring Cloud Stream Rabbit下发确认
EN

Stack Overflow用户
提问于 2017-06-07 23:39:58
回答 0查看 498关注 0票数 1

如何在Spring Cloud Stream Rabbit中保证交付。我的代码如下:

代码语言:javascript
复制
class Source {
    MessageChannel output;
    Repository repo;

    @Transactional
    void publisher(Command command){
      repo.save(command);
      output.send(MessageBuilder
                .withPayload(new Event()).build());
    }
}

class Sink {

  @StreamListener(Event.class)
  void eventListener(Event event){
     // method body
  }
}

任何帮助都是非常感谢的。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44417191

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档