Package org.apache.cassandra.utils
Interface Backoff
- All Known Implementing Classes:
Backoff.ExponentialBackoff,Backoff.None
public interface Backoff
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic enum -
Method Summary
-
Method Details
-
maxAttempts
int maxAttempts()- Returns:
- max attempts allowed,
== 0implies no retries are allowed
-
computeWaitTime
long computeWaitTime(int retryCount) -
unit
TimeUnit unit()
-