Class RetryPolicy


  • public final class RetryPolicy
    extends Object
    Information about the retry policy for an event subscription.
    • Constructor Detail

      • RetryPolicy

        public RetryPolicy()
    • Method Detail

      • maxDeliveryAttempts

        public Integer maxDeliveryAttempts()
        Get the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.
        Returns:
        the maxDeliveryAttempts value.
      • withMaxDeliveryAttempts

        public RetryPolicy withMaxDeliveryAttempts​(Integer maxDeliveryAttempts)
        Set the maxDeliveryAttempts property: Maximum number of delivery retry attempts for events.
        Parameters:
        maxDeliveryAttempts - the maxDeliveryAttempts value to set.
        Returns:
        the RetryPolicy object itself.
      • eventTimeToLiveInMinutes

        public Integer eventTimeToLiveInMinutes()
        Get the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.
        Returns:
        the eventTimeToLiveInMinutes value.
      • withEventTimeToLiveInMinutes

        public RetryPolicy withEventTimeToLiveInMinutes​(Integer eventTimeToLiveInMinutes)
        Set the eventTimeToLiveInMinutes property: Time To Live (in minutes) for events.
        Parameters:
        eventTimeToLiveInMinutes - the eventTimeToLiveInMinutes value to set.
        Returns:
        the RetryPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.