Interface TaskExecutionBackOff
- All Known Implementing Classes:
ExponentialTaskExecutionBackOff,FixedTaskExecutionBackOff
public interface TaskExecutionBackOff
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longReturn value ofnextBackOff(Object, RqueueMessage, int)that indicates that the task should not be executed further. -
Method Summary
Modifier and TypeMethodDescriptionlongnextBackOff(Object message, RqueueMessage rqueueMessage, int failureCount) Return the number of milliseconds to wait for the same message to be consumed by other consumers.
-
Field Details
-
STOP
static final long STOPReturn value ofnextBackOff(Object, RqueueMessage, int)that indicates that the task should not be executed further.- See Also:
-
-
Method Details
-
nextBackOff
Return the number of milliseconds to wait for the same message to be consumed by other consumers. (-1L) to indicate that no further enqueue should be made for the message.- Parameters:
message- message that's fetchedrqueueMessage- raw messagefailureCount- number of times this message has failed.- Returns:
- backoff in the millisecond.
-