Class ClientRetryListener

java.lang.Object
com.hybris.datahub.core.rest.client.ClientRetryListener
All Implemented Interfaces:
org.springframework.retry.RetryListener

public class ClientRetryListener extends Object implements org.springframework.retry.RetryListener
  • Constructor Details

    • ClientRetryListener

      public ClientRetryListener()
  • Method Details

    • open

      public <T, E extends Throwable> boolean open(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T,E> retryCallback)
      Specified by:
      open in interface org.springframework.retry.RetryListener
    • close

      public <T, E extends Throwable> void close(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T,E> retryCallback, Throwable throwable)
      Specified by:
      close in interface org.springframework.retry.RetryListener
    • onError

      public <T, E extends Throwable> void onError(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T,E> retryCallback, Throwable throwable)
      Specified by:
      onError in interface org.springframework.retry.RetryListener
    • setInitialInterval

      public void setInitialInterval(int initialInterval)
    • setMultiplier

      public void setMultiplier(int multiplier)
    • setMaxAttempts

      public void setMaxAttempts(int maxAttempts)
    • setMaxInterval

      public void setMaxInterval(int maxInterval)