Interface TaskExecutionBackOff

    • Method Detail

      • nextBackOff

        long nextBackOff​(java.lang.Object object,
                         RqueueMessage rqueueMessage,
                         int failureCount)
        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:
        object - message that's fetched
        rqueueMessage - raw message
        failureCount - number of times this message has failed.
        Returns:
        backoff in the millisecond.