Class AbstractRetryingMessageListenerAdapter<K,​V,​T>

    • Constructor Detail

      • AbstractRetryingMessageListenerAdapter

        public AbstractRetryingMessageListenerAdapter​(T delegate,
                                                      org.springframework.retry.support.RetryTemplate retryTemplate)
        Construct an instance with the supplied retry template. The exception will be thrown to the container after retries are exhausted.
        Parameters:
        delegate - the delegate listener.
        retryTemplate - the template.
      • AbstractRetryingMessageListenerAdapter

        public AbstractRetryingMessageListenerAdapter​(T delegate,
                                                      org.springframework.retry.support.RetryTemplate retryTemplate,
                                                      org.springframework.retry.RecoveryCallback<? extends java.lang.Object> recoveryCallback)
        Construct an instance with the supplied template and callback.
        Parameters:
        delegate - the delegate listener.
        retryTemplate - the template.
        recoveryCallback - the recovery callback; if null, the exception will be thrown to the container after retries are exhausted.
    • Method Detail

      • getRetryTemplate

        public org.springframework.retry.support.RetryTemplate getRetryTemplate()
      • getRecoveryCallback

        public org.springframework.retry.RecoveryCallback<? extends java.lang.Object> getRecoveryCallback()