Class RetryOnSuccessEvent

  • All Implemented Interfaces:
    RetryEvent

    public class RetryOnSuccessEvent
    extends java.lang.Object
    A RetryEvent which informs that a call has been retried and a retry was successful. This event is not published when a call was successful without a retry attempt.
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      RetryOnSuccessEvent​(java.lang.String name, int currentNumOfAttempts, java.lang.Throwable lastThrowable)  
    • Constructor Detail

      • RetryOnSuccessEvent

        public RetryOnSuccessEvent​(java.lang.String name,
                                   int currentNumOfAttempts,
                                   @Nullable
                                   java.lang.Throwable lastThrowable)
    • Method Detail

      • getEventType

        public RetryEvent.Type getEventType()
        Description copied from interface: RetryEvent
        Returns the type of the Retry event.
        Returns:
        the type of the Retry event
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
        Description copied from interface: RetryEvent
        Returns the ID of the Retry.
        Specified by:
        getName in interface RetryEvent
        Returns:
        the ID of the Retry
      • getCreationTime

        public java.time.ZonedDateTime getCreationTime()
        Description copied from interface: RetryEvent
        Returns the creation time of Retry event.
        Specified by:
        getCreationTime in interface RetryEvent
        Returns:
        the creation time of Retry event
      • getNumberOfRetryAttempts

        public int getNumberOfRetryAttempts()
        Description copied from interface: RetryEvent
        Returns the number of retry attempts.
        Specified by:
        getNumberOfRetryAttempts in interface RetryEvent
        Returns:
        the the number of retry attempts
      • getLastThrowable

        @Nullable
        public java.lang.Throwable getLastThrowable()
        Description copied from interface: RetryEvent
        Returns the last captured Throwable.
        Specified by:
        getLastThrowable in interface RetryEvent
        Returns:
        the last captured Throwable