Interface SqsMessageVisibilityChanger

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SqsMessageVisibilityChanger
    Interface through which the visibility of an associated inbound SqsMessage is managed.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(Duration timeout, boolean stillInProcess)
      Changes the visibility timeout of the associated SqsMessage by the provided duration and may mark the message as no longer in flight.
    • Method Detail

      • execute

        void execute​(Duration timeout,
                     boolean stillInProcess)
        Changes the visibility timeout of the associated SqsMessage by the provided duration and may mark the message as no longer in flight. When stillInProcess is "false", it implies that processing of the Message has terminated and another Message might be requested. When stillInProcess is "true", it implies that the message is still being processed.
        Parameters:
        timeout - The amount of time to reset the visibility by, by whole seconds
        stillInProcess - Whether Message is still being processed