Package de.hybris.platform.util.backoff
Interface BackoffStrategy
- All Known Implementing Classes:
ExponentialBackoffStrategy
public interface BackoffStrategy
back-off strategy
-
Method Summary
Modifier and TypeMethodDescriptionInforms back-off mechanism about failurevoidReset back off state.boolean
-
Method Details
-
errorOccurred
Duration errorOccurred()Informs back-off mechanism about failure- Returns:
- back-off time adjusted by fail
-
resetBackOffState
void resetBackOffState()Reset back off state. Call this method after successful attempts if you want to reuse the class -
shouldRetry
boolean shouldRetry()- Returns:
- true if there are tries left
-