You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Represents the time that messages received from the SQS queue should be invisible from other consumers of the queue before it is considered a failure
12
+
* and placed onto the queue for future retrieval.
13
+
*
14
+
* <p>If a null or non-positive number is returned than no visibility timeout will be submitted for this message and therefore the default visibility
15
+
* set on the SQS queue will be used.
16
+
*
17
+
* @return the visibility timeout for the message
18
+
* @see ReceiveMessageRequest#visibilityTimeout() for where this is applied against
19
+
*/
20
+
@Nullable
21
+
@Positive
22
+
IntegergetMessageVisibilityTimeoutInSeconds();
23
+
24
+
/**
25
+
* The number of milliseconds that the background thread for receiving messages should sleep after an error is thrown.
26
+
*
27
+
* <p>This is needed to stop the background thread from constantly requesting for more messages which constantly throwing errors. For example, maybe the
28
+
* connection to the SQS throws a 403 or some other error and we don't want to be constantly retrying to make the connection unnecessarily. This
29
+
* therefore sleeps the thread for this period before attempting again.
14
30
*
15
-
* <p>E.g. the number of seconds that a message can be kept before it is assumed that it wasn't completed and will be put back onto the queue
31
+
* <p>If this value is null, negative or zero, {@link IndividualMessageRetrieverConstants#DEFAULT_BACKOFF_TIME_IN_MS} will be used as the backoff period.
16
32
*
17
-
* @see ReceiveMessageRequest#visibilityTimeout for where this is applied against
33
+
* @return the number of milliseconds to sleep the thread after an error is thrown
0 commit comments