Class ExchangeSpecification.ResilienceSpecification

java.lang.Object
org.knowm.xchange.ExchangeSpecification.ResilienceSpecification
Enclosing class:
ExchangeSpecification

public static class ExchangeSpecification.ResilienceSpecification extends Object
  • Constructor Details

    • ResilienceSpecification

      public ResilienceSpecification()
  • Method Details

    • isRetryEnabled

      public boolean isRetryEnabled()
      Returns:
      true if enabled
      See Also:
    • 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:
    • 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.