Class ClientRetryListener
java.lang.Object
com.hybris.datahub.core.rest.client.ClientRetryListener
- All Implemented Interfaces:
org.springframework.retry.RetryListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T,E extends Throwable>
voidclose(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T, E> retryCallback, Throwable throwable) <T,E extends Throwable>
voidonError(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T, E> retryCallback, Throwable throwable) <T,E extends Throwable>
booleanopen(org.springframework.retry.RetryContext retryContext, org.springframework.retry.RetryCallback<T, E> retryCallback) voidsetInitialInterval(int initialInterval) voidsetMaxAttempts(int maxAttempts) voidsetMaxInterval(int maxInterval) voidsetMultiplier(int multiplier)
-
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:
openin interfaceorg.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:
closein interfaceorg.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:
onErrorin interfaceorg.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)
-