com.amazonaws.services.sqs.model.Message.setReceiptHandle()方法的使用及代码示例

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

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

Message.setReceiptHandle介绍

[英]An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.
[中]与接收信息的行为相关联的标识符。每次收到消息时,都会返回一个新的接收句柄。删除邮件时,提供上次收到的回执句柄以删除邮件。

代码示例

代码示例来源:origin: aws/aws-sdk-java

  1. /**
  2. * <p>
  3. * An identifier associated with the act of receiving the message. A new receipt handle is returned every time you
  4. * receive a message. When deleting a message, you provide the last received receipt handle to delete the message.
  5. * </p>
  6. *
  7. * @param receiptHandle
  8. * An identifier associated with the act of receiving the message. A new receipt handle is returned every
  9. * time you receive a message. When deleting a message, you provide the last received receipt handle to
  10. * delete the message.
  11. * @return Returns a reference to this object so that method calls can be chained together.
  12. */
  13. public Message withReceiptHandle(String receiptHandle) {
  14. setReceiptHandle(receiptHandle);
  15. return this;
  16. }

代码示例来源:origin: aws/aws-sdk-java

  1. message.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(context));
  2. continue;

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

  1. /**
  2. * <p>
  3. * An identifier associated with the act of receiving the message. A new receipt handle is returned every time you
  4. * receive a message. When deleting a message, you provide the last received receipt handle to delete the message.
  5. * </p>
  6. *
  7. * @param receiptHandle
  8. * An identifier associated with the act of receiving the message. A new receipt handle is returned every
  9. * time you receive a message. When deleting a message, you provide the last received receipt handle to
  10. * delete the message.
  11. * @return Returns a reference to this object so that method calls can be chained together.
  12. */
  13. public Message withReceiptHandle(String receiptHandle) {
  14. setReceiptHandle(receiptHandle);
  15. return this;
  16. }

代码示例来源:origin: aws-amplify/aws-sdk-android

  1. message.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(
  2. context));
  3. continue;

代码示例来源:origin: awslabs/amazon-sqs-java-extended-client-lib

  1. s3MsgBucketName, s3MsgKey);
  2. message.setReceiptHandle(modifiedReceiptHandle);

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

  1. message.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(context));
  2. continue;

代码示例来源:origin: com.amazonaws/aws-android-sdk-sqs

  1. message.setReceiptHandle(StringStaxUnmarshaller.getInstance().unmarshall(
  2. context));
  3. continue;

相关文章