【问题标题】:How many records does SNSEvent Object's getRecords() return?SNSEvent 对象的 getRecords() 返回多少条记录?
【发布时间】:2020-07-16 06:49:57
【问题描述】:

将返回多少条记录,它实际上是如何工作的?

public String handleRequest(SNSEvent snsEvent, Context context) {
        List<SNSRecord> records = snsEvent.getRecords();
        System.out.println("Size "+ records.size());
        return "success";
} 

【问题讨论】:

    标签: amazon-sns aws-java-sdk


    【解决方案1】:

    阅读the docs

    问:通知是否会包含多个消息?

    不,所有通知消息都将包含一条发布的消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多