Class ExchangeSpecification.ResilienceSpecification

    • Constructor Detail

      • ResilienceSpecification

        public ResilienceSpecification()
    • Method Detail

      • setRetryEnabled

        public void setRetryEnabled​(boolean retryEnabled)
        Flag that lets you enable retry functionality if it was implemented for the given exchange.

        If this feature is implemented and enabled then operations that can be safely retried on socket failures and timeouts will be retried.

      • isRateLimiterEnabled

        public boolean isRateLimiterEnabled()
        Returns:
        true if enabled
        See Also:
        setRetryEnabled(boolean)
      • setRateLimiterEnabled

        public void setRateLimiterEnabled​(boolean rateLimiterEnabled)
        Flag that lets you enable call rate limiting functionality if it was implemented for the given exchange.

        If this featrue is implemented and enabled then we will limit the amount of calls to the exchanges API to not exceeds its limits. This will result in delaying some calls or throwing a RequestNotPermitted exception if we would have to wait to long.