Package org.apache.cassandra.config
Class RetrySpec
java.lang.Object
org.apache.cassandra.config.RetrySpec
- Direct Known Subclasses:
RepairRetrySpec,RetrySpec.Partial
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurationSpec.LongMillisecondsBoundstatic final RetrySpec.MaxAttemptstatic final DurationSpec.LongMillisecondsBoundRepresents how many retry attempts are allowed. -
Constructor Summary
ConstructorsConstructorDescriptionRetrySpec(RetrySpec.MaxAttempt maxAttempts, DurationSpec.LongMillisecondsBound baseSleepTime, DurationSpec.LongMillisecondsBound maxSleepTime) -
Method Summary
-
Field Details
-
DEFAULT_MAX_ATTEMPTS
-
DEFAULT_BASE_SLEEP
-
DEFAULT_MAX_SLEEP
-
maxAttempts
Represents how many retry attempts are allowed. If the value is 2, this will cause 2 retries + 1 original request, for a total of 3 requests! To disable, set to 0. -
baseSleepTime
-
maxSleepTime
-
-
Constructor Details
-
RetrySpec
public RetrySpec() -
RetrySpec
public RetrySpec(RetrySpec.MaxAttempt maxAttempts, DurationSpec.LongMillisecondsBound baseSleepTime, DurationSpec.LongMillisecondsBound maxSleepTime)
-
-
Method Details