SNSEvent对象的getRecords()return有多少条记录?
How many records does SNSEvent Object's getRecords() return?
将返回多少条记录,它实际上是如何工作的?
public String handleRequest(SNSEvent snsEvent, Context context) {
List<SNSRecord> records = snsEvent.getRecords();
System.out.println("Size "+ records.size());
return "success";
}
阅读the docs:
Q: Will a notification contain more than one message?
No, all notification messages will contain a single published message.
将返回多少条记录,它实际上是如何工作的?
public String handleRequest(SNSEvent snsEvent, Context context) {
List<SNSRecord> records = snsEvent.getRecords();
System.out.println("Size "+ records.size());
return "success";
}
阅读the docs:
Q: Will a notification contain more than one message?
No, all notification messages will contain a single published message.