Class SqsReceiverMessage

    • Method Detail

      • receiptHandle

        public String receiptHandle()
        Description copied from interface: ReceivedSqsMessage
        The Receipt Handle of this message, used to manage its visibility and deletion. Note that this value is unique to the act of receiving a Message with any given ID, and a unique Message with any given ID will receive a unique Receipt Handle each time it is received.
        Specified by:
        receiptHandle in interface ReceivedSqsMessage<String>
      • delete

        public void delete()
        Schedules this Message for deletion
      • deleter

        public Runnable deleter()
        Returns the Runnable used to schedule this Message for deletion.
      • changeVisibility

        public void changeVisibility​(Duration timeout)
        Schedules a change of this Message's visibility by the provided Duration (which should have a whole number of seconds) and marks the message as no longer in process.
      • changeVisibility

        public void changeVisibility​(Duration timeout,
                                     boolean stillInProcess)
        Schedules a change of this Message's visibility by the provided Duration (which should have a whole number of seconds) and may mark the message as still in process.